From 841cf58dbcc0512841683185a22006a3e44dcef9 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Tue, 18 Nov 1997 08:49:03 +0000 Subject: [PATCH] Remove the outq error in "show modem". --- usr.sbin/ppp/modem.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index 2a5ca62f2d83..585728b36b7f 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));