diff options
Diffstat (limited to 'usr.sbin/mrouted/main.c')
-rw-r--r-- | usr.sbin/mrouted/main.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/mrouted/main.c b/usr.sbin/mrouted/main.c index e6861cb5401..da0f9f3d434 100644 --- a/usr.sbin/mrouted/main.c +++ b/usr.sbin/mrouted/main.c @@ -30,7 +30,7 @@ #ifndef lint static char rcsid[] = - "@(#) $Id: main.c,v 1.11 2003/03/03 14:58:23 deraadt Exp $"; + "@(#) $Id: main.c,v 1.12 2003/03/03 15:14:28 deraadt Exp $"; #endif extern char *configfilename; @@ -40,8 +40,8 @@ static char dumpfilename[] = _PATH_MROUTED_DUMP; static char cachefilename[] = _PATH_MROUTED_CACHE; static char genidfilename[] = _PATH_MROUTED_GENID; -int cache_lifetime = DEFAULT_CACHE_LIFETIME; -int max_prune_lifetime = DEFAULT_CACHE_LIFETIME * 2; +int cache_lifetime = DEFAULT_CACHE_LIFETIME; +int max_prune_lifetime = DEFAULT_CACHE_LIFETIME * 2; int debug = 0; u_char pruning = 1; /* Enable pruning by default */ @@ -137,7 +137,7 @@ main(int argc, char *argv[]) } if (argc > 0) { -usage: fprintf(stderr, +usage: fprintf(stderr, "usage: mrouted [-p] [-c configfile] [-d [debug_level]]\n"); exit(1); } @@ -191,7 +191,7 @@ usage: fprintf(stderr, #endif /* - * Get generation id + * Get generation id */ gettimeofday(&tv, 0); dvmrp_genid = tv.tv_sec; @@ -325,9 +325,9 @@ usage: fprintf(stderr, snmp_select_info(&nfds, &rfds, tvp, &block); if (block == 1) tvp = NULL; /* block without timeout */ - if ((n = select(nfds, &rfds, NULL, NULL, tvp)) < 0) + if ((n = select(nfds, &rfds, NULL, NULL, tvp)) < 0) #else - if ((n = select(nfds, &rfds, NULL, NULL, NULL)) < 0) + if ((n = select(nfds, &rfds, NULL, NULL, NULL)) < 0) #endif { if (errno != EINTR) /* SIGALRM is expected */ @@ -357,7 +357,7 @@ usage: fprintf(stderr, } #ifdef SNMP - snmp_read(&rfds); + snmp_read(&rfds); snmp_timeout(); /* poll */ #endif } @@ -405,7 +405,7 @@ fasttimer(int i) timer(); age_callout_queue();/* Advance the timer for the callout queue - for groups */ + for groups */ alarm(1); } @@ -549,7 +549,7 @@ cdump(int i) fp = fopen(cachefilename, "w"); if (fp != NULL) { - dump_cache(fp); + dump_cache(fp); (void) fclose(fp); } } |