brightness: fix compiler warning

This commit is contained in:
Přemysl Eric Janouch 2016-01-15 21:23:49 +01:00
parent c86e0af234
commit e01a0f2abf
1 changed files with 1 additions and 1 deletions

View File

@ -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)