diff options
author | Kacper Kowalik (Xarthisius) <xarthisius@gentoo.org> | 2012-11-18 10:49:47 +0100 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2012-11-18 10:14:19 -0500 |
commit | c189ab04cbaa2f011da0210f2c885e6f693f1d6c (patch) | |
tree | e013ea0467292d81b5318106985d3bfeec6a333f /src/udev/udevadm-settle.c | |
parent | 2af83cafa0f410edc1d60029edfd457e121114a4 (diff) |
Fix unused result warnings
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udevadm-settle.c')
-rw-r--r-- | src/udev/udevadm-settle.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udev/udevadm-settle.c b/src/udev/udevadm-settle.c index c4fc4ee4e5..dd833fb6db 100644 --- a/src/udev/udevadm-settle.c +++ b/src/udev/udevadm-settle.c @@ -192,7 +192,8 @@ static int adm_settle(struct udev *udev, int argc, char *argv[]) if (poll(pfd, 1, delay) > 0 && pfd[0].revents & POLLIN) { char buf[sizeof(struct inotify_event) + PATH_MAX]; - read(pfd[0].fd, buf, sizeof(buf)); + if (read(pfd[0].fd, buf, sizeof(buf)) == -1) + log_error("Failed to read buf in %s\n", "[udevadm-settle:adm_settle]"); } } else { sleep(1); |