summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-02-19 10:40:44 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2017-03-06 22:24:33 +0100
commite47d0455474c4b1411355d03d2b2e5bbfd83cc3e (patch)
tree892950e32921ee890d27bccd22ef533e8fc11b88
parent11aeb4a61dfd1b68a446b276ab1f8cd5d4f12ddf (diff)
downloadgnutls-e47d0455474c4b1411355d03d2b2e5bbfd83cc3e.tar.gz
rnd: aligned type of data counter with input data type (size_t)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/nettle/rnd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/nettle/rnd.c b/lib/nettle/rnd.c
index 7b0f0f682f..6fdb8f1c48 100644
--- a/lib/nettle/rnd.c
+++ b/lib/nettle/rnd.c
@@ -49,7 +49,7 @@ enum {
struct nonce_ctx_st {
struct salsa20_ctx ctx;
- unsigned int counter;
+ size_t counter;
unsigned int forkid;
};
@@ -59,7 +59,7 @@ struct rnd_ctx_st {
struct timespec device_last_read;
time_t trivia_previous_time;
time_t trivia_time_count;
- unsigned forkid;
+ unsigned int forkid;
};
struct ext_ctx_st {