diff options
author | Sami Kerola | 2014-05-24 19:49:53 +0200 |
---|---|---|
committer | Sami Kerola | 2014-05-26 17:42:49 +0200 |
commit | d8bb8a033fed68b75c9367f9e7fbf97a305995e9 (patch) | |
tree | 1f4728d9f8cc4d23008d3ad20b6b44e5697d9d27 /misc-utils/uuidd.c | |
parent | uuidgen: use type definitions from uuid.h (diff) | |
download | kernel-qcow2-util-linux-d8bb8a033fed68b75c9367f9e7fbf97a305995e9.tar.gz kernel-qcow2-util-linux-d8bb8a033fed68b75c9367f9e7fbf97a305995e9.tar.xz kernel-qcow2-util-linux-d8bb8a033fed68b75c9367f9e7fbf97a305995e9.zip |
uuidd: do not mix signed type and unsigned code
Both the strtou32_or_err() and alarm() expect timeout to be unsigned.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/uuidd.c')
-rw-r--r-- | misc-utils/uuidd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc-utils/uuidd.c b/misc-utils/uuidd.c index f72c45281..8909b5178 100644 --- a/misc-utils/uuidd.c +++ b/misc-utils/uuidd.c @@ -59,7 +59,7 @@ extern int optind; /* server loop control structure */ struct uuidd_cxt_t { - int timeout; + uint32_t timeout; unsigned int debug: 1, quiet: 1, no_fork: 1, @@ -366,7 +366,7 @@ static void server_loop(const char *socket_path, const char *pidfile_path, while (1) { fromlen = sizeof(from_addr); - if (uuidd_cxt->timeout > 0) + if (uuidd_cxt->timeout != 0) alarm(uuidd_cxt->timeout); ns = accept(s, (struct sockaddr *) &from_addr, &fromlen); alarm(0); |