diff --git a/library/ctr_drbg.c b/library/ctr_drbg.c index 9194d75dd..aec29b9e6 100644 --- a/library/ctr_drbg.c +++ b/library/ctr_drbg.c @@ -448,7 +448,7 @@ unsigned char result_nopr[16] = { 0xa0, 0x54, 0x30, 0x3d, 0x8a, 0x7e, 0xa9, 0x88, 0x9d, 0x90, 0x3e, 0x07, 0x7c, 0x6f, 0x21, 0x8f }; -int test_offset; +static size_t test_offset; int ctr_drbg_self_test_entropy( void *data, unsigned char *buf, size_t len ) { unsigned char *p = data; diff --git a/library/net.c b/library/net.c index 3e1446694..6333b0ff0 100644 --- a/library/net.c +++ b/library/net.c @@ -223,6 +223,7 @@ int net_bind( int *fd, const char *bind_ip, int port ) */ static int net_would_block( int fd ) { + ((void) fd); return( WSAGetLastError() == WSAEWOULDBLOCK ); } #else