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:
@@ -17,7 +17,7 @@ all:
|
||||
do (cd $$i && $(MAKE) $(MFLAGS) all); done
|
||||
|
||||
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__"
|
||||
|
||||
install: all
|
||||
SUBDIRS=$(SUBDIRS); \
|
||||
|
@@ -36,7 +36,7 @@ OBJECTS = verify.o
|
||||
all: $(LIB)
|
||||
|
||||
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) $<
|
||||
|
@@ -35,7 +35,7 @@ OBJECTS = pam.o
|
||||
all: $(LIB)
|
||||
|
||||
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) $<
|
||||
|
@@ -35,7 +35,7 @@ OBJECTS = sia.o
|
||||
all: $(LIB)
|
||||
|
||||
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) $<
|
||||
|
@@ -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) $<
|
||||
|
@@ -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)
|
||||
{
|
||||
|
@@ -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
|
||||
|
||||
|
@@ -37,7 +37,7 @@ OBJECTS = afssys.o
|
||||
all: $(LIB)
|
||||
|
||||
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) $<
|
||||
|
@@ -38,7 +38,7 @@ OBJECTS = otp.o otp_challenge.o otp_db.o otp_md.o \
|
||||
all: $(LIB)
|
||||
|
||||
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) -I$(srcdir)/../des $(CFLAGS) $(PICFLAGS) $<
|
||||
|
@@ -45,7 +45,7 @@ OBJECTS = k_getpwuid.o k_getpwnam.o signal.o tm2time.o \
|
||||
all: $(LIB)
|
||||
|
||||
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) $<
|
||||
|
@@ -70,6 +70,7 @@ string_to_type(const char *name)
|
||||
return -1;
|
||||
}
|
||||
|
||||
#if 0
|
||||
static char *
|
||||
type_to_string(int type)
|
||||
{
|
||||
@@ -79,6 +80,7 @@ type_to_string(int type)
|
||||
return p->name;
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
dns_free_data(struct dns_reply *r)
|
||||
@@ -126,7 +128,7 @@ parse_reply(unsigned char *data, int len)
|
||||
p += 2;
|
||||
rr = &r->head;
|
||||
while(p < data + len){
|
||||
int type, class, ttl, size, priority, weight, port;
|
||||
int type, class, ttl, size;
|
||||
status = dn_expand(data, data + len, p, host, sizeof(host));
|
||||
if(status < 0){
|
||||
dns_free_data(r);
|
||||
@@ -160,7 +162,6 @@ parse_reply(unsigned char *data, int len)
|
||||
break;
|
||||
case T_MX:
|
||||
case T_AFSDB:{
|
||||
struct mx_record *mx;
|
||||
status = dn_expand(data, data + len, p + 2, host, sizeof(host));
|
||||
if(status < 0){
|
||||
dns_free_data(r);
|
||||
@@ -173,7 +174,6 @@ parse_reply(unsigned char *data, int len)
|
||||
break;
|
||||
}
|
||||
case T_SRV:{
|
||||
struct srv_record *srv;
|
||||
status = dn_expand(data, data + len, p + 6, host,
|
||||
sizeof((char*)host));
|
||||
if(status < 0){
|
||||
|
@@ -42,6 +42,7 @@
|
||||
#define __ROKEN_H__
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
@@ -131,6 +132,14 @@ char *getstr(char *id, char **cpp);
|
||||
struct passwd *k_getpwnam (char *user);
|
||||
struct passwd *k_getpwuid (uid_t uid);
|
||||
|
||||
#ifndef HAVE_SETEUID
|
||||
int seteuid(int euid);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SETEGID
|
||||
int setegid(int egid);
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
time_t tm2time (struct tm tm, int local);
|
||||
@@ -168,6 +177,10 @@ void mini_inetd (int port);
|
||||
#include <syslog.h>
|
||||
/* Misc definitions for old syslogs */
|
||||
|
||||
#ifndef HAVE_VSYSLOG
|
||||
void vsyslog(int pri, const char *fmt, va_list ap);
|
||||
#endif
|
||||
|
||||
#ifndef LOG_DAEMON
|
||||
#define openlog(id,option,facility) openlog((id),(option))
|
||||
#endif
|
||||
|
@@ -42,6 +42,7 @@
|
||||
#define __ROKEN_H__
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <signal.h>
|
||||
#ifdef HAVE_SYS_TYPES_H
|
||||
@@ -131,6 +132,14 @@ char *getstr(char *id, char **cpp);
|
||||
struct passwd *k_getpwnam (char *user);
|
||||
struct passwd *k_getpwuid (uid_t uid);
|
||||
|
||||
#ifndef HAVE_SETEUID
|
||||
int seteuid(int euid);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SETEGID
|
||||
int setegid(int egid);
|
||||
#endif
|
||||
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
time_t tm2time (struct tm tm, int local);
|
||||
@@ -168,6 +177,10 @@ void mini_inetd (int port);
|
||||
#include <syslog.h>
|
||||
/* Misc definitions for old syslogs */
|
||||
|
||||
#ifndef HAVE_VSYSLOG
|
||||
void vsyslog(int pri, const char *fmt, va_list ap);
|
||||
#endif
|
||||
|
||||
#ifndef LOG_DAEMON
|
||||
#define openlog(id,option,facility) openlog((id),(option))
|
||||
#endif
|
||||
|
@@ -41,6 +41,10 @@
|
||||
RCSID("$Id$");
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "roken.h"
|
||||
|
||||
int
|
||||
setegid(int egid)
|
||||
{
|
||||
|
@@ -41,6 +41,10 @@
|
||||
RCSID("$Id$");
|
||||
#endif
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include "roken.h"
|
||||
|
||||
int
|
||||
seteuid(int euid)
|
||||
{
|
||||
|
Reference in New Issue
Block a user