diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ksh/Makefile | 4 | ||||
-rw-r--r-- | bin/ksh/io.c | 3 | ||||
-rw-r--r-- | bin/ksh/jobs.c | 3 | ||||
-rw-r--r-- | bin/ksh/lex.c | 5 |
4 files changed, 6 insertions, 9 deletions
diff --git a/bin/ksh/Makefile b/bin/ksh/Makefile index 5613e8965fa..c6d815ad2cc 100644 --- a/bin/ksh/Makefile +++ b/bin/ksh/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.21 2004/12/22 17:47:03 millert Exp $ +# $OpenBSD: Makefile,v 1.22 2004/12/30 21:34:24 otto Exp $ PROG= ksh SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \ @@ -6,7 +6,7 @@ SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \ main.c misc.c path.c shf.c syn.c table.c trap.c \ tree.c tty.c var.c version.c vi.c -DEFS= -Wall -Wno-unused +DEFS= -Wall CFLAGS+=${DEFS} -I. -I${.CURDIR} MAN= ksh.1 sh.1 diff --git a/bin/ksh/io.c b/bin/ksh/io.c index baf7c79197a..00593a1dffc 100644 --- a/bin/ksh/io.c +++ b/bin/ksh/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.19 2004/12/22 17:14:34 millert Exp $ */ +/* $OpenBSD: io.c,v 1.20 2004/12/30 21:34:24 otto Exp $ */ /* * shell buffered IO and formatted output @@ -410,7 +410,6 @@ coproc_cleanup(int reuse) struct temp * maketemp(Area *ap, Temp_type type, struct temp **tlist) { - static unsigned int inc; struct temp *tp; int len; int fd; diff --git a/bin/ksh/jobs.c b/bin/ksh/jobs.c index 65851bf1845..9731db3fe93 100644 --- a/bin/ksh/jobs.c +++ b/bin/ksh/jobs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: jobs.c,v 1.30 2004/12/22 18:48:56 millert Exp $ */ +/* $OpenBSD: jobs.c,v 1.31 2004/12/30 21:34:24 otto Exp $ */ /* * Process and job control @@ -607,7 +607,6 @@ int j_kill(const char *cp, int sig) { Job *j; - Proc *p; int rv = 0; int ecode; sigset_t omask; diff --git a/bin/ksh/lex.c b/bin/ksh/lex.c index cc6d447bb65..bae9cfd60b3 100644 --- a/bin/ksh/lex.c +++ b/bin/ksh/lex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lex.c,v 1.32 2004/12/30 21:11:40 millert Exp $ */ +/* $OpenBSD: lex.c,v 1.33 2004/12/30 21:34:24 otto Exp $ */ /* * lexical analysis and source input @@ -1161,8 +1161,7 @@ dopprompt(const char *sp, int ntruncate, const char **spp, int doprint) { char strbuf[1024], tmpbuf[1024], *p, *str, nbuf[32], delimiter = '\0'; int len, c, n, totlen = 0, indelimit = 0, counting = 1, delimitthis; - const char *cp = sp, *ccp; - extern INT32 njobs; + const char *cp = sp; struct tm *tm; time_t t; |