diff options
author | Nils Larsch <nils@openssl.org> | 2005-08-28 23:20:52 +0000 |
---|---|---|
committer | Nils Larsch <nils@openssl.org> | 2005-08-28 23:20:52 +0000 |
commit | 7f622f6c04f149e7402c6f2f5c49bb9c69f4e891 (patch) | |
tree | 279190d86a139629eb766510b9e3334a3d05d817 /crypto/rand | |
parent | 801136bcc2e6e4eb48df6d43401a1c1db6a9742c (diff) | |
download | openssl-new-7f622f6c04f149e7402c6f2f5c49bb9c69f4e891.tar.gz |
fix warnings when building openssl with (gcc 3.3.1):
-Wmissing-prototypes -Wcomment -Wformat -Wimplicit -Wmain -Wmultichar
-Wswitch -Wshadow -Wtrigraphs -Werror -Wchar-subscripts
-Wstrict-prototypes -Wreturn-type -Wpointer-arith -W -Wunused
-Wno-unused-parameter -Wuninitialized
Diffstat (limited to 'crypto/rand')
-rw-r--r-- | crypto/rand/rand_unix.c | 6 | ||||
-rw-r--r-- | crypto/rand/randtest.c | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index 14837a7a7d..5d031d93af 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -155,7 +155,8 @@ int RAND_poll(void) #ifdef DEVRANDOM static const char *randomfiles[] = { DEVRANDOM }; struct stat randomstats[sizeof(randomfiles)/sizeof(randomfiles[0])]; - int fd,i; + int fd; + size_t i; #endif #ifdef DEVRANDOM_EGD static const char *egdsockets[] = { DEVRANDOM_EGD, NULL }; @@ -185,7 +186,8 @@ int RAND_poll(void) { struct timeval t = { 0, 10*1000 }; /* Spend 10ms on each file. */ - int r,j; + int r; + size_t j; fd_set fset; struct stat *st=&randomstats[i]; diff --git a/crypto/rand/randtest.c b/crypto/rand/randtest.c index ef057c2c31..9e92a70b03 100644 --- a/crypto/rand/randtest.c +++ b/crypto/rand/randtest.c @@ -65,7 +65,7 @@ /* some FIPS 140-1 random number test */ /* some simple tests */ -int main() +int main(int argc,char **argv) { unsigned char buf[2500]; int i,j,k,s,sign,nsign,err=0; |