diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2008-10-31 17:43:51 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2008-10-31 17:43:51 +0000 |
commit | 841e3a0a3fa0169d011aa64f4f2882f9f34895bd (patch) | |
tree | 17462b66f0ba5c9c95990f2796189cd1e98db691 /randpkt.c | |
parent | 623861f855531de6f27b775e3f2c350e41342901 (diff) |
Fixed some "ignoring return value" warnings.
This is the last commit to make it compile clean on Ubuntu 8.10.
svn path=/trunk/; revision=26654
Diffstat (limited to 'randpkt.c')
-rw-r--r-- | randpkt.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |