Index: filed.c ================================================================== --- filed.c +++ filed.c @@ -204,10 +204,11 @@ } /* Initialize process */ static int filed_init(unsigned int cache_size) { static int called = 0; + ssize_t read_ret = 0; unsigned int random_value = 0; int cache_ret; int random_fd; if (called) { @@ -232,11 +233,11 @@ } /* Initialize random number generator */ random_fd = open("/dev/urandom", O_RDONLY); if (random_fd >= 0) { - read(random_fd, &random_value, sizeof(random_value)); + read_ret = read(random_fd, &random_value, sizeof(random_value)); close(random_fd); } random_value ^= getpid(); @@ -244,10 +245,13 @@ random_value ^= time(NULL); srandom(random_value); return(0); + + /* NOTREACH: Read may fail or succeed, we don't actually care */ + read_ret = read_ret; } /* Listen on a particular address/port */ static int filed_listen(const char *address, unsigned int port) { struct sockaddr_in6 addr_v6;