From: deraadt Date: Sun, 6 Apr 1997 08:43:41 +0000 (+0000) Subject: clean -Wall X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=61934b2c86c65ac75f5177696a98eb55ca6eed40;p=openbsd clean -Wall --- diff --git a/libexec/getty/main.c b/libexec/getty/main.c index 67904bda83a..a84ad3b8f40 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -39,7 +39,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93";*/ -static char rcsid[] = "$Id: main.c,v 1.6 1996/12/17 19:33:53 tholo Exp $"; +static char rcsid[] = "$Id: main.c,v 1.7 1997/04/06 08:43:41 deraadt Exp $"; #endif /* not lint */ #include @@ -174,7 +174,6 @@ main(argc, argv) { extern char **environ; char *tname; - long allflags; int repcnt = 0, failopenlogged = 0; struct rlimit limit; int rval; @@ -356,7 +355,7 @@ getname() register int c; register char *np; unsigned char cs; - int ppp_state; + int ppp_state = 0; int ppp_connection = 0; /* diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c index 4c7c36499a0..0c0fd3a2f51 100644 --- a/libexec/getty/subr.c +++ b/libexec/getty/subr.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)subr.c 8.1 (Berkeley) 6/4/93";*/ -static char rcsid[] = "$Id: subr.c,v 1.7 1996/12/17 19:33:55 tholo Exp $"; +static char rcsid[] = "$Id: subr.c,v 1.8 1997/04/06 08:43:44 deraadt Exp $"; #endif /* not lint */ /* @@ -621,9 +621,9 @@ makeenv(env) termbuf[sizeof(termbuf)-1] = '\0'; *ep++ = termbuf; } - if (p = EV) { + if ((p = EV)) { q = p; - while (q = strchr(q, ',')) { + while ((q = strchr(q, ','))) { *q++ = '\0'; *ep++ = p; p = q;