diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-01-15 21:23:49 +0100 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-01-15 21:23:49 +0100 |
commit | e01a0f2abfdf486f39911fb5a52b7b974361d597 (patch) | |
tree | feea8318bc8f922105b5f49caa18bc057d5436bd | |
parent | c86e0af2349656e1a3079e638634342f11f8ef16 (diff) | |
download | desktop-tools-e01a0f2abfdf486f39911fb5a52b7b974361d597.tar.gz desktop-tools-e01a0f2abfdf486f39911fb5a52b7b974361d597.tar.xz desktop-tools-e01a0f2abfdf486f39911fb5a52b7b974361d597.zip |
brightness: fix compiler warning
-rw-r--r-- | brightness.c | 2 |
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) |