Fix warnings, remove unused variables.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@970 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1996-11-15 18:39:27 +00:00
parent 629f5ec95c
commit 0bcddc9caf
23 changed files with 61 additions and 21 deletions

View File

@@ -41,7 +41,7 @@ LIBOBJ = cbc3_enc.o cbc_enc.o cfb64ede.o cfb64enc.o cfb_enc.o ecb3_enc.o ede_enc
all: $(LIB) $(PROGS)
Wall:
make CFLAGS="-g -Wall -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
make CFLAGS="-g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
.c.o:
$(CC) -c $(CPPFLAGS) $(DEFS) -I../.. -I../../include -I$(srcdir) $(CFLAGS) $(PICFLAGS) $<

View File

@@ -47,6 +47,7 @@ RCSID("$Id$");
#include <md5.h>
#include <sha.h>
static
int
md4_tests (void)
{
@@ -89,6 +90,7 @@ md4_tests (void)
return 0;
}
static
int
md5_tests (void)
{
@@ -123,6 +125,7 @@ md5_tests (void)
return 0;
}
static
int
sha_tests (void)
{

View File

@@ -164,9 +164,13 @@ sigALRM(int sig)
#endif
#if !defined(HAVE_RANDOM) && defined(HAVE_RAND)
#ifndef srandom
#define srandom srand
#endif
#ifndef random
#define random rand
#endif
#endif
#ifdef HAVE_RANDOM