summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-09-05 20:16:26 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-09-10 15:27:28 -0400
commit26dce93086ba46a3d9ead391b33b8a02515416ae (patch)
treee205d2cd10f616829a5f09c03f773756de321dbb
parentdadfb5fcf502ae338df0a69d4713fabf774a9672 (diff)
downloadlighttpd-git-26dce93086ba46a3d9ead391b33b8a02515416ae.tar.gz
[core] attempt to quiet compiler warning in LEDE
-rw-r--r--src/rand.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rand.c b/src/rand.c
index 1742ef13..be63c922 100644
--- a/src/rand.c
+++ b/src/rand.c
@@ -113,7 +113,8 @@ static int li_rand_device_bytes (unsigned char *buf, int num)
ssize_t rd = 0;
#ifdef RNDGETENTCNT
int entropy;
- if (0 == ioctl(fd, RNDGETENTCNT, &entropy) && entropy >= num*8)
+ if (0 == ioctl(fd, (unsigned long)(RNDGETENTCNT), &entropy)
+ && entropy >= num*8)
#endif
rd = read(fd, buf, (size_t)num);
close(fd);