diff options
author | hm <hm@FreeBSD.org> | 2000-10-09 14:22:51 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 2000-10-09 14:22:51 +0000 |
commit | 5ab5e2a391ce47dd5453a8592c99baf8e9b2a6f4 (patch) | |
tree | 26a8d414a4a8b7be8fb22e1e65e5ba4889daf0ae /usr.sbin/i4b/isdnd/main.c | |
parent | f334879ea56c48ab237e6528968d81dd32e9f209 (diff) | |
download | FreeBSD-src-5ab5e2a391ce47dd5453a8592c99baf8e9b2a6f4.zip FreeBSD-src-5ab5e2a391ce47dd5453a8592c99baf8e9b2a6f4.tar.gz |
update to i4b version 0.95.04
Diffstat (limited to 'usr.sbin/i4b/isdnd/main.c')
-rw-r--r-- | usr.sbin/i4b/isdnd/main.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/usr.sbin/i4b/isdnd/main.c b/usr.sbin/i4b/isdnd/main.c index fb519df..9c172e0 100644 --- a/usr.sbin/i4b/isdnd/main.c +++ b/usr.sbin/i4b/isdnd/main.c @@ -27,11 +27,11 @@ * i4b daemon - main program entry * ------------------------------- * - * $Id: main.c,v 1.49 1999/12/13 21:25:25 hm Exp $ + * $Id: main.c,v 1.54 2000/10/09 12:53:29 hm Exp $ * * $FreeBSD$ * - * last edit-date: [Mon Dec 13 21:47:35 1999] + * last edit-date: [Mon Oct 2 22:57:08 2000] * *---------------------------------------------------------------------------*/ @@ -89,7 +89,7 @@ usage(void) fprintf(stderr, " general = 0x%04x, rates = 0x%04x, timing = 0x%04x\n", DL_MSG, DL_RATES, DL_TIME); fprintf(stderr, " state = 0x%04x, retry = 0x%04x, dial = 0x%04x\n", DL_STATE, DL_RCVRY, DL_DIAL); fprintf(stderr, " process = 0x%04x, kernio = 0x%04x ctrlstat = 0x%04x\n", DL_PROC, DL_DRVR, DL_CNST); - fprintf(stderr, " rc-file = 0x%04x\n", DL_RCCF); + fprintf(stderr, " rc-file = 0x%04x, budget = 0x%04x\n", DL_RCCF, DL_BDGT); fprintf(stderr, " -dn no debug output on fullscreen display\n"); #endif fprintf(stderr, " -f fullscreen status display\n"); @@ -126,14 +126,10 @@ main(int argc, char **argv) setlocale (LC_ALL, ""); - while ((i = getopt(argc, argv, "bmc:d:fFlL:Pr:s:t:u:")) != -1) + while ((i = getopt(argc, argv, "mc:d:fFlL:Pr:s:t:u:")) != -1) { switch (i) { - case 'b': - do_bell = 1; - break; - #ifdef I4B_EXTERNAL_MONITOR case 'm': inhibit_monitor = 1; @@ -365,6 +361,10 @@ main(int argc, char **argv) if(aliasing) init_alias(aliasfile); + /* init holidays */ + + init_holidays(holidayfile); + /* init remote monitoring */ #ifdef I4B_EXTERNAL_MONITOR @@ -405,6 +405,8 @@ main(int argc, char **argv) } #endif + starttime = time(NULL); /* get starttime */ + srandom(580403); /* init random number gen */ mloop( /* enter loop of no return .. */ |