From: Paul Mackerras Date: Fri, 6 May 1994 04:48:21 +0000 (+0000) Subject: fix some buglets X-Git-Tag: ppp-2-1-2a~56 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=cf94c677bbe14aa01f5531071b3b9c3c817020cd fix some buglets --- diff --git a/pppd/sys-ultrix.c b/pppd/sys-ultrix.c index 0301a8a..d3236ec 100644 --- a/pppd/sys-ultrix.c +++ b/pppd/sys-ultrix.c @@ -19,7 +19,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: sys-ultrix.c,v 1.1 1994/04/18 04:11:11 paulus Exp $"; +static char rcsid[] = "$Id: sys-ultrix.c,v 1.2 1994/05/06 04:48:21 paulus Exp $"; #endif /* @@ -27,9 +27,9 @@ static char rcsid[] = "$Id: sys-ultrix.c,v 1.1 1994/04/18 04:11:11 paulus Exp $" */ #include -#include #include #include +#include #include #include @@ -43,7 +43,7 @@ static char rcsid[] = "$Id: sys-ultrix.c,v 1.1 1994/04/18 04:11:11 paulus Exp $" #include "ppp.h" static int initdisc = -1; /* Initial TTY discipline */ - +extern int kdebugflag; /* * establish_ppp - Turn the serial port into a ppp interface. @@ -52,6 +52,7 @@ void establish_ppp() { int pppdisc = PPPDISC; + int x; if (ioctl(fd, TIOCGETD, &initdisc) < 0) { syslog(LOG_ERR, "ioctl(TIOCGETD): %m");