From: Nikos Mavrogiannopoulos Date: Sun, 19 Feb 2017 09:40:44 +0000 (+0100) Subject: rnd: aligned type of data counter with input data type (size_t) X-Git-Tag: gnutls_3_6_0~895 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e47d0455474c4b1411355d03d2b2e5bbfd83cc3e;p=thirdparty%2Fgnutls.git rnd: aligned type of data counter with input data type (size_t) Signed-off-by: Nikos Mavrogiannopoulos --- 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 {