using signed return value for read()
authorMartin Willi <martin@strongswan.org>
Tue, 30 Sep 2008 06:27:50 +0000 (06:27 -0000)
committerMartin Willi <martin@strongswan.org>
Tue, 30 Sep 2008 06:27:50 +0000 (06:27 -0000)
src/libstrongswan/plugins/random/random_rng.c

index 1aadc88..45a1b51 100644 (file)
@@ -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;