diff options
author | Martin Willi <martin@strongswan.org> | 2008-09-30 06:27:50 +0000 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2008-09-30 06:27:50 +0000 |
commit | ceff3064fe0a0ca471dab46f2944a32d2fa63c96 (patch) | |
tree | 8f1b1b00582ef22a9647374f5b42a198bf990e3e /src/libstrongswan/plugins/random/random_rng.c | |
parent | a341a68fac045e94a45aa3fb1f7ac3e821e8a8be (diff) | |
download | strongswan-ceff3064fe0a0ca471dab46f2944a32d2fa63c96.tar.bz2 strongswan-ceff3064fe0a0ca471dab46f2944a32d2fa63c96.tar.xz |
using signed return value for read()
Diffstat (limited to 'src/libstrongswan/plugins/random/random_rng.c')
-rw-r--r-- | src/libstrongswan/plugins/random/random_rng.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libstrongswan/plugins/random/random_rng.c b/src/libstrongswan/plugins/random/random_rng.c index 1aadc88bd..45a1b5138 100644 --- a/src/libstrongswan/plugins/random/random_rng.c +++ b/src/libstrongswan/plugins/random/random_rng.c @@ -63,7 +63,8 @@ struct private_random_rng_t { static void get_bytes(private_random_rng_t *this, size_t bytes, u_int8_t *buffer) { - size_t done, got; + size_t done; + ssize_t got; done = 0; |