]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix warning on sign compare in getentropy_linux.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 10 Mar 2015 10:29:55 +0000 (10:29 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 10 Mar 2015 10:29:55 +0000 (10:29 +0000)
git-svn-id: file:///svn/unbound/trunk@3360 be551aaa-1e26-0410-a405-d3ace91eadb9

compat/getentropy_linux.c
doc/Changelog

index 41e4219cb35f5f7aa064576d2540541854ad0c68..76f0f9df5f1b6ad286d447dbb56f895a4a0967a9 100644 (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);
index c09a2631441f528996597164bdaad1a9c3402dd7..7399e6dd06cec4feb77c0fd752731a6591a7a604 100644 (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