diff options
author | charnier <charnier@FreeBSD.org> | 1998-07-28 06:36:31 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1998-07-28 06:36:31 +0000 |
commit | cd64002d5da7c3bacf30747f3a6af5baca8676a6 (patch) | |
tree | 083e700ad435744b33aa1ed531c4da6bb11f49b8 /sbin/routed/if.c | |
parent | 6999d30e2ecf654e56794fbef703e59c1826883a (diff) | |
download | FreeBSD-src-cd64002d5da7c3bacf30747f3a6af5baca8676a6.zip FreeBSD-src-cd64002d5da7c3bacf30747f3a6af5baca8676a6.tar.gz |
Spelling, add rcsid, remove unused #includes.
Convert 1000000 usec to 1 sec 0 usec.
Use provided safe malloc (rtmalloc()) instead of malloc(): exit on allocation
failure.
Correct use of .Nm
Add usage() and use errx().
Diffstat (limited to 'sbin/routed/if.c')
-rw-r--r-- | sbin/routed/if.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sbin/routed/if.c b/sbin/routed/if.c index 2b32759..0711ba0 100644 --- a/sbin/routed/if.c +++ b/sbin/routed/if.c @@ -31,12 +31,13 @@ * SUCH DAMAGE. */ -#if !defined(lint) && !defined(sgi) && !defined(__NetBSD__) +#ifndef lint +#if 0 static char sccsid[] = "@(#)if.c 8.1 (Berkeley) 6/5/93"; -#elif defined(__NetBSD__) -static char rcsid[] = "$NetBSD$"; #endif -#ident "$Revision: 1.1.1.5 $" +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ #include "defs.h" #include "pathnames.h" @@ -695,7 +696,7 @@ ifinit(void) ? CHECK_ACT_INTERVAL : CHECK_QUIET_INTERVAL); - /* mark all interfaces so we can get rid of thost that disappear */ + /* mark all interfaces so we can get rid of those that disappear */ for (ifp = ifnet; 0 != ifp; ifp = ifp->int_next) ifp->int_state &= ~(IS_CHECKED | IS_DUP); @@ -994,7 +995,7 @@ ifinit(void) } ifp->int_data = ifs.int_data; - /* Withhold judgement when the short error + /* Withhold judgment when the short error * counters wrap or the interface is reset. */ if (ierr < 0 || in < 0 || oerr < 0 || out < 0) { |