summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/main.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-09-18 12:41:52 +0000
committerbde <bde@FreeBSD.org>1995-09-18 12:41:52 +0000
commitd12995ce7a25a3b2d1aba913a2a6e01afb1a4bc8 (patch)
treee115c70abbef42ed4e48f6455844e88d28cc3649 /usr.sbin/ppp/main.c
parent1e3cbf190d40dc92ea3650ffcc4dbefe92f7a8be (diff)
downloadFreeBSD-src-d12995ce7a25a3b2d1aba913a2a6e01afb1a4bc8.zip
FreeBSD-src-d12995ce7a25a3b2d1aba913a2a6e01afb1a4bc8.tar.gz
Fix a comment that became wrong when it was moved in rev. 1.7. Fix nearby
indentation. Cosmetic.
Diffstat (limited to 'usr.sbin/ppp/main.c')
-rw-r--r--usr.sbin/ppp/main.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c
index cc0f513..6703085 100644
--- a/usr.sbin/ppp/main.c
+++ b/usr.sbin/ppp/main.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: main.c,v 1.8 1995/09/02 17:20:52 amurai Exp $
+ * $Id: main.c,v 1.9 1995/09/17 16:14:48 amurai Exp $
*
* TODO:
* o Add commands for traffic summary, version display, etc.
@@ -661,18 +661,16 @@ DoLoop()
usleep(TICKUNIT);
TimerService();
#endif
- if ( qlen < 20 ) {
- /*
- * If there are many packets queued, wait until they are drained.
- */
- FD_SET(tun_in, &rfds);
- }
+
+ /* If there are aren't many packets queued, look for some more. */
+ if (qlen < 20)
+ FD_SET(tun_in, &rfds);
+
if (netfd > -1) {
FD_SET(netfd, &rfds);
FD_SET(netfd, &efds);
}
-
#ifndef SIGALRM
/*
* Normally, select() will not block because modem is writable.
OpenPOWER on IntegriCloud