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
This commit is contained in:
Nils Larsch
2005-08-28 23:20:52 +00:00
parent 801136bcc2
commit 7f622f6c04
27 changed files with 98 additions and 82 deletions

View File

@@ -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];