summaryrefslogtreecommitdiffstats
path: root/usr.sbin/i4b/isdntest
diff options
context:
space:
mode:
authorhm <hm@FreeBSD.org>2000-10-09 14:22:51 +0000
committerhm <hm@FreeBSD.org>2000-10-09 14:22:51 +0000
commit5ab5e2a391ce47dd5453a8592c99baf8e9b2a6f4 (patch)
tree26a8d414a4a8b7be8fb22e1e65e5ba4889daf0ae /usr.sbin/i4b/isdntest
parentf334879ea56c48ab237e6528968d81dd32e9f209 (diff)
downloadFreeBSD-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.c14
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);
}
/*---------------------------------------------------------------------------*
OpenPOWER on IntegriCloud