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:
@@ -1934,7 +1934,7 @@ restart(int argc, char **argv)
|
||||
printf("restart: offset not specified\n");
|
||||
else {
|
||||
off_t restart_point = atol(argv[1]);
|
||||
printf("restarting at %qd. %s\n", restart_point,
|
||||
printf("restarting at %ld. %s\n", (long)restart_point,
|
||||
"execute get, put or append to initiate transfer");
|
||||
}
|
||||
}
|
||||
|
@@ -538,13 +538,12 @@ copy_stream(FILE *from, FILE *to)
|
||||
char buf[BUFSIZ];
|
||||
int n;
|
||||
int bytes = 0;
|
||||
struct stat st;
|
||||
|
||||
int werr;
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
struct stat st;
|
||||
void *chunk;
|
||||
|
||||
#ifdef HAVE_MMAP
|
||||
if(fstat(fileno(from), &st) == 0 && S_ISREG(st.st_mode)){
|
||||
chunk = mmap(0, st.st_size, PROT_READ, MAP_SHARED, fileno(from), 0);
|
||||
if(chunk != NULL){
|
||||
|
@@ -43,7 +43,7 @@ SOURCES = $(SOURCES_KX) $(SOURCES_KXD) $(SOURCES_COMMON)
|
||||
all: $(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) $<
|
||||
|
@@ -128,7 +128,7 @@ copy_encrypted (int fd1, int fd2, des_cblock *iv,
|
||||
int
|
||||
get_xsockets (int *unix_socket, int *tcp_socket)
|
||||
{
|
||||
int unixfd, tcpfd;
|
||||
int unixfd, tcpfd = -1;
|
||||
struct sockaddr_un unixaddr;
|
||||
struct sockaddr_in tcpaddr;
|
||||
int dpy;
|
||||
|
@@ -111,7 +111,6 @@ connect_host (char *host, des_cblock *key, des_key_schedule schedule,
|
||||
struct hostent *hostent;
|
||||
int s;
|
||||
u_char b;
|
||||
char tmp[16];
|
||||
char **p;
|
||||
|
||||
hostent = gethostbyname (host);
|
||||
@@ -329,7 +328,6 @@ doit (char *host, int passivep, int debugp, int tcpp)
|
||||
if (passivep) {
|
||||
struct sockaddr_in newaddr;
|
||||
int addrlen;
|
||||
u_char b = passivep;
|
||||
int otherside;
|
||||
|
||||
otherside = connect_host (host, &key, schedule, passivep);
|
||||
|
@@ -51,6 +51,7 @@ usage (void)
|
||||
exit (1);
|
||||
}
|
||||
|
||||
#if 0
|
||||
static void
|
||||
strlwr (char *s)
|
||||
{
|
||||
@@ -59,6 +60,7 @@ strlwr (char *s)
|
||||
s++;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
static int
|
||||
print (int argc,
|
||||
|
@@ -42,7 +42,7 @@ OBJECTS = pop_dele.o pop_dropcopy.o pop_dropinfo.o \
|
||||
all: $(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) $<
|
||||
|
@@ -40,7 +40,7 @@ OBJECTS = xnlock.o
|
||||
all: $(PROGS)
|
||||
|
||||
Wall:
|
||||
make CFLAGS="$(XINCS) -g -Wall -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
|
||||
make CFLAGS="$(XINCS) -g -Wall -Wno-comment -Wmissing-prototypes -Wmissing-declarations -D__USE_FIXED_PROTOTYPES__"
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(CPPFLAGS) $(DEFS) -I../.. -I../../include -I$(srcdir) $(CFLAGS) $<
|
||||
|
Reference in New Issue
Block a user