From e01a0f2abfdf486f39911fb5a52b7b974361d597 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Fri, 15 Jan 2016 21:23:49 +0100 Subject: brightness: fix compiler warning --- brightness.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brightness.c b/brightness.c index f30a0c9..ac79563 100644 --- a/brightness.c +++ b/brightness.c @@ -375,7 +375,7 @@ set_backlight (int dir, long diff, struct error **e) struct str s; str_init (&s); str_append_printf (&s, "%ld", req); - bool result = write (fd, s.str, s.len) == s.len; + bool result = write (fd, s.str, s.len) == (ssize_t) s.len; str_free (&s); if (!result) -- cgit v1.2.3-70-g09d2