diff options
author | Dileep Kumar Reddi <dkumarre@codeaurora.org> | 2014-02-25 14:32:51 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-02-28 02:09:00 -0800 |
commit | bf333c775dc1afdacf0ead6b213f8651a5f3af6b (patch) | |
tree | 11c616451231c4613d605dabead39df35e830b2e /liblight | |
parent | afbd8b71799bba3d95b5215b7c3df3542a193d88 (diff) | |
download | display-bf333c775dc1afdacf0ead6b213f8651a5f3af6b.tar.gz |
hqd : Use proper type casts
* Remove compilation errors
* Use proper type casts
Change-Id: I1d44c2a2362a1fdd4d6e412ea816d4078e8355c9
:
Diffstat (limited to 'liblight')
-rw-r--r-- | liblight/lights.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/liblight/lights.c b/liblight/lights.c index 229777a3..1aa0b588 100644 --- a/liblight/lights.c +++ b/liblight/lights.c @@ -84,7 +84,7 @@ write_int(char const* path, int value) if (fd >= 0) { char buffer[20]; int bytes = sprintf(buffer, "%d\n", value); - int amt = write(fd, buffer, bytes); + ssize_t amt = write(fd, buffer, (size_t)bytes); close(fd); return amt == -1 ? -errno : 0; } else { |