- Fix warning on sign compare in getentropy_linux.

git-svn-id: file:///svn/unbound/trunk@3360 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2015-03-10 10:29:55 +00:00
parent 4bb7d2b3b1
commit bac2305fa6
2 changed files with 2 additions and 1 deletions

View file

@ -204,7 +204,7 @@ getentropy_getrandom(void *buf, size_t len)
ret = syscall(SYS_getrandom, buf, len, 0);
} while (ret == -1 && errno == EINTR);
if (ret != len)
if (ret != (int)len)
return (-1);
errno = pre_errno;
return (0);

View file

@ -3,6 +3,7 @@
Schulze).
- print svnroot when building windows dist.
- iana portlist update.
- Fix warning on sign compare in getentropy_linux.
9 March 2015: Wouter
- Fix #644: harden-algo-downgrade option, if turned off, fixes the