Both the strtou32_or_err() and alarm() expect timeout to be unsigned.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
/* server loop control structure */
struct uuidd_cxt_t {
- int timeout;
+ uint32_t timeout;
unsigned int debug: 1,
quiet: 1,
no_fork: 1,
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);