diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-08-11 15:24:21 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-08-11 15:24:21 +0200 |
commit | fca52c23758ad65a7245c7f9043fa67eb01b93e7 (patch) | |
tree | f690b16997a1cfb81fa22ca7dd6297c159e5ed2c /rnd.c | |
parent | 786f0254af9c7d4b66357a100810ad89708863c4 (diff) |
rnd: Fix compiler warning
Fix the following compiler warning that occurs when building with "-W
-Wall -Wextra":
rnd.c: In function ‘randombytes_strong’:
rnd.c:50:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'rnd.c')
-rw-r--r-- | rnd.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -47,7 +47,7 @@ static void randombytes_strong(unsigned char *x, size_t xlen) fds = open_or_die(HIG_ENTROPY_SOURCE, O_RDONLY); ret = read_exact(fds, x, xlen, 0); - if (ret != xlen) + if (ret != (int) xlen) panic("Error reading from entropy source!\n"); close(fds); |