From bc529497cb54e427139fb8b93ea10293c2db16d9 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Mon, 2 Sep 1996 22:48:11 +0000 Subject: [PATCH] Removed unused variables. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@710 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/cmds.c | 4 ++-- appl/ftp/ftp/ftp.c | 2 +- appl/ftp/ftp/krb4.c | 9 ++------- appl/ftp/ftp/main.c | 2 +- appl/kx/common.c | 1 - appl/kx/kx.c | 1 - 6 files changed, 6 insertions(+), 13 deletions(-) diff --git a/appl/ftp/ftp/cmds.c b/appl/ftp/ftp/cmds.c index 8ccfbf8ab..f5ac07574 100644 --- a/appl/ftp/ftp/cmds.c +++ b/appl/ftp/ftp/cmds.c @@ -473,7 +473,7 @@ mput(int argc, char **argv) return; } for (i = 1; i < argc; i++) { - char **cpp, **gargs; + char **cpp; glob_t gl; int flags; @@ -1935,7 +1935,7 @@ restart(int argc, char **argv) if (argc != 2) printf("restart: offset not specified\n"); else { - restart_point = atol(argv[1]); + off_t restart_point = atol(argv[1]); printf("restarting at %qd. %s\n", restart_point, "execute get, put or append to initiate transfer"); } diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index 910d59cb2..74f11578e 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -586,7 +586,7 @@ sendrequest(char *cmd, char *local, char *remote, int printnames) int (*closefunc) __P((FILE *)); sighand oldintr, oldintp; long bytes = 0, hashbytes = HASHBYTES; - char *lmode, buf[BUFSIZ], *bufp; + char *lmode; if (verbose && printnames) { if (local && *local != '-') diff --git a/appl/ftp/ftp/krb4.c b/appl/ftp/ftp/krb4.c index 788630cf1..180602880 100644 --- a/appl/ftp/ftp/krb4.c +++ b/appl/ftp/ftp/krb4.c @@ -116,10 +116,8 @@ sec_prot_internal(int level) void sec_prot(int argc, char **argv) { - int s; - int ret; - char *p; int level = -1; + if(argc != 2){ fprintf(stderr, "usage: %s (clear | safe | confidential | private)\n", @@ -134,7 +132,6 @@ void sec_prot(int argc, char **argv) } level = name_to_level(argv[1]); - if(level == -1){ fprintf(stderr, "usage: %s (clear | safe | confidential | private)\n", @@ -384,13 +381,11 @@ int do_klogin(char *host) { int ret; - char *phost; - char *p, *q; + char *p; int len; char adat[1024]; MSG_DAT msg_data; int checksum; - int tmp; int old_verbose = verbose; diff --git a/appl/ftp/ftp/main.c b/appl/ftp/ftp/main.c index e1ce9da68..dd700e79f 100644 --- a/appl/ftp/ftp/main.c +++ b/appl/ftp/ftp/main.c @@ -43,7 +43,7 @@ main(int argc, char **argv) { int ch, top; struct passwd *pw = NULL; - char *cp, homedir[MaxPathLen]; + char homedir[MaxPathLen]; struct servent *sp; sp = getservbyname("ftp", "tcp"); diff --git a/appl/kx/common.c b/appl/kx/common.c index 9635de9b4..0c9d13143 100644 --- a/appl/kx/common.c +++ b/appl/kx/common.c @@ -45,7 +45,6 @@ copy_encrypted (int fd1, int fd2, des_cblock *iv, for (;;) { fd_set fdset; int ret; - char buf[BUFSIZ]; FD_ZERO(&fdset); FD_SET(fd1, &fdset); diff --git a/appl/kx/kx.c b/appl/kx/kx.c index be431bdbe..f765c5f40 100644 --- a/appl/kx/kx.c +++ b/appl/kx/kx.c @@ -123,7 +123,6 @@ passive (int fd, char *host, des_cblock *iv, des_key_schedule schedule) static int doit (char *host, int passivep) { - int otherside; des_key_schedule schedule; des_cblock key; int rendez_vous;