]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
rnd: aligned type of data counter with input data type (size_t)
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Sun, 19 Feb 2017 09:40:44 +0000 (10:40 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 6 Mar 2017 21:24:33 +0000 (22:24 +0100)
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
lib/nettle/rnd.c

index 7b0f0f682f3ebf7404866882fe59d24527bb56a5..6fdb8f1c4852f3963ac00db832fbd8d83e962794 100644 (file)
@@ -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 {