From 163ea3c3346fcba3c0d1e27ad88f07a6c48323eb Mon Sep 17 00:00:00 2001 From: stig Date: Fri, 31 Oct 2008 17:43:51 +0000 Subject: Fixed some "ignoring return value" warnings. This is the last commit to make it compile clean on Ubuntu 8.10. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26654 f5534014-38df-0310-8fa8-9805f1628bb7 --- randpkt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'randpkt.c') diff --git a/randpkt.c b/randpkt.c index ab88c2c907..c8545fd870 100644 --- a/randpkt.c +++ b/randpkt.c @@ -615,6 +615,7 @@ seed(void) #if defined(linux) /* Okay, I should use #ifdef HAVE_DEV_RANDOM, but this is a quick hack */ int fd; + int ret; fd = open("/dev/random", O_RDONLY); if (fd < 0) { @@ -622,7 +623,7 @@ seed(void) exit(0); } - read(fd, &randomness, sizeof(randomness)); + ret = read(fd, &randomness, sizeof(randomness)); #else time_t now; -- cgit v1.2.3