From: Wouter Wijngaards Date: Tue, 10 Mar 2015 10:29:55 +0000 (+0000) Subject: - Fix warning on sign compare in getentropy_linux. X-Git-Tag: release-1.5.4~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bac2305fa6f4d1d6cdf17eba3dfb171621e1e75a;p=thirdparty%2Funbound.git - Fix warning on sign compare in getentropy_linux. git-svn-id: file:///svn/unbound/trunk@3360 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/compat/getentropy_linux.c b/compat/getentropy_linux.c index 41e4219cb..76f0f9df5 100644 --- a/compat/getentropy_linux.c +++ b/compat/getentropy_linux.c @@ -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); diff --git a/doc/Changelog b/doc/Changelog index c09a26314..7399e6dd0 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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