aboutsummaryrefslogtreecommitdiff
path: root/brightness.c
diff options
context:
space:
mode:
Diffstat (limited to 'brightness.c')
-rw-r--r--brightness.c2
1 files changed, 1 insertions, 1 deletions
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)