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/isdntest | |
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/isdntest')
-rw-r--r-- | usr.sbin/i4b/isdntest/main.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/usr.sbin/i4b/isdntest/main.c b/usr.sbin/i4b/isdntest/main.c index d050613..2d80e2e 100644 --- a/usr.sbin/i4b/isdntest/main.c +++ b/usr.sbin/i4b/isdntest/main.c @@ -27,11 +27,11 @@ * main.c - i4b selftest utility * ----------------------------- * - * $Id: main.c,v 1.15 1999/12/13 21:25:26 hm Exp $ + * $Id: main.c,v 1.16 2000/03/13 16:18:38 hm Exp $ * * $FreeBSD$ * - * last edit-date: [Mon Dec 13 21:55:19 1999] + * last edit-date: [Mon Mar 13 17:19:26 2000] * *---------------------------------------------------------------------------*/ @@ -459,6 +459,7 @@ handle_connect_active_ind(unsigned char *ptr) fprintf(stderr, "\n"); } cleanup(); + exit(0); } } } @@ -548,7 +549,8 @@ void cleanup(void) while((out_cdid != CDID_UNUSED) || (in_cdid != CDID_UNUSED)) { - fprintf(stderr, "isdntest: cleanup, out_cdid %d, in_cdid %d\n", out_cdid, in_cdid); + if(debug_level) + fprintf(stderr, "isdntest: cleanup, out_cdid %d, in_cdid %d\n", out_cdid, in_cdid); if((len = read(isdnfd, buf, 1024 - 1)) > 0) { @@ -567,7 +569,8 @@ void cleanup(void) break; default: - fprintf(stderr, "isdntest: unknown message 0x%x = %c\n", buf[0], buf[0]); + if(debug_level) + fprintf(stderr, "isdntest: unknown message 0x%x = %c\n", buf[0], buf[0]); break; } } @@ -576,7 +579,8 @@ void cleanup(void) fprintf(stderr, "isdntest: read error, errno = %d, length = %d", errno, len); } } - fprintf(stderr, "isdntest: exit cleanup, out_cdid %d, in_cdid %d\n", out_cdid, in_cdid); + if(debug_level) + fprintf(stderr, "isdntest: exit cleanup, out_cdid %d, in_cdid %d\n", out_cdid, in_cdid); } /*---------------------------------------------------------------------------* |