diff options
author | Karel Zak | 2015-10-09 11:23:16 +0200 |
---|---|---|
committer | Karel Zak | 2015-10-09 11:23:16 +0200 |
commit | 4b09b1c253808ad4559917693d26918580283a47 (patch) | |
tree | d7703806c3ce590d8f2e5277d44bec63f926b947 /misc-utils/uuidd.c | |
parent | uuidd: fix shadow declaration (diff) | |
download | kernel-qcow2-util-linux-4b09b1c253808ad4559917693d26918580283a47.tar.gz kernel-qcow2-util-linux-4b09b1c253808ad4559917693d26918580283a47.tar.xz kernel-qcow2-util-linux-4b09b1c253808ad4559917693d26918580283a47.zip |
uuidd: fix compiler warning [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/uuidd.c')
-rw-r--r-- | misc-utils/uuidd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index 2359f986f..dc62731b1 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -413,7 +413,9 @@ static void server_loop(const char *socket_path, const char *pidfile_path, pfd[POLLFD_SIGNAL].events = pfd[POLLFD_SOCKET].events = POLLIN | POLLERR | POLLHUP; while (1) { - ret = poll(pfd, ARRAY_SIZE(pfd), (uuidd_cxt->timeout == 0 ? -1 : uuidd_cxt->timeout * 1000)); + ret = poll(pfd, ARRAY_SIZE(pfd), + uuidd_cxt->timeout ? + (int) uuidd_cxt->timeout * 1000 : -1); if (ret < 0) { if (errno == EAGAIN) continue; |