summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/getty/main.c5
-rw-r--r--libexec/getty/subr.c6
2 files changed, 5 insertions, 6 deletions
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 <sys/param.h>
@@ -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;