diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-09-05 20:16:26 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-09-10 15:27:28 -0400 |
commit | 26dce93086ba46a3d9ead391b33b8a02515416ae (patch) | |
tree | e205d2cd10f616829a5f09c03f773756de321dbb | |
parent | dadfb5fcf502ae338df0a69d4713fabf774a9672 (diff) | |
download | lighttpd-git-26dce93086ba46a3d9ead391b33b8a02515416ae.tar.gz |
[core] attempt to quiet compiler warning in LEDE
-rw-r--r-- | src/rand.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |