diff options
author | brian <brian@FreeBSD.org> | 1997-11-18 08:49:03 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-11-18 08:49:03 +0000 |
commit | c08bc6daf50e8a5c840594819b79e8ff8e7c1441 (patch) | |
tree | 25a24add8537187bdbe3ee0083e2d28bff2626f7 /usr.sbin/ppp | |
parent | eca4cb0b5894b0fc3caaf118395e3489418a4aa9 (diff) | |
download | FreeBSD-src-c08bc6daf50e8a5c840594819b79e8ff8e7c1441.zip FreeBSD-src-c08bc6daf50e8a5c840594819b79e8ff8e7c1441.tar.gz |
Remove the outq error in "show modem".
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r-- | usr.sbin/ppp/modem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index 2a5ca62..585728b 100644 --- a/usr.sbin/ppp/modem.c +++ b/usr.sbin/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.63 1997/11/09 06:22:44 brian Exp $ + * $Id: modem.c,v 1.64 1997/11/09 14:18:48 brian Exp $ * * TODO: */ @@ -948,7 +948,7 @@ ShowModemStatus() fprintf(VarTerm, "connect count: %d\n", connect_count); #ifdef TIOCOUTQ if (modem >= 0) - if (ioctl(modem, TIOCOUTQ, &nb) > 0) + if (ioctl(modem, TIOCOUTQ, &nb) >= 0) fprintf(VarTerm, "outq: %d\n", nb); else fprintf(VarTerm, "outq: ioctl probe failed: %s\n", strerror(errno)); |