Fix compiler warnings.

This commit is contained in:
George Thessalonikefs 2019-11-22 14:30:56 +01:00
parent 1718a8e6b5
commit 30b0fa1e8e
2 changed files with 5 additions and 2 deletions

View File

@ -202,7 +202,7 @@ getentropy_getrandom(void *buf, size_t len)
ret = syscall(SYS_getrandom, buf, len, GRND_NONBLOCK);
} while (ret == -1 && errno == EINTR);
if (ret != len)
if (ret != (int)len)
return (-1);
errno = pre_errno;
return (0);
@ -321,7 +321,7 @@ static const int cl[] = {
};
static int
getentropy_phdr(struct dl_phdr_info *info, size_t size, void *data)
getentropy_phdr(struct dl_phdr_info *info, size_t ATTR_UNUSED(size), void *data)
{
SHA512_CTX *ctx = data;

View File

@ -1,3 +1,6 @@
22 November 2019: George
- Fix compiler warnings.
22 November 2019: Wouter
- Fix dname loop maximum, reported by Eric Sesterhenn from X41 D-Sec.