diff options
author | imp <imp@FreeBSD.org> | 1999-06-24 06:43:21 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-06-24 06:43:21 +0000 |
commit | 37b915c08f74748061b9773d96f3f5af5135af6c (patch) | |
tree | b697f96f3e37bb409953c5a4b7d05737a7109dab /usr.sbin/i4b/isdntrace | |
parent | b6415deff202f2102139d1b05e3c9f71b331bd83 (diff) | |
download | FreeBSD-src-37b915c08f74748061b9773d96f3f5af5135af6c.zip FreeBSD-src-37b915c08f74748061b9773d96f3f5af5135af6c.tar.gz |
Two getopts related nits:
o getopt returns -1 rather than EOF on errors
o getopt returns '?' for characters it doesn't know about, so
don't include them in the getopt options string.
Diffstat (limited to 'usr.sbin/i4b/isdntrace')
-rw-r--r-- | usr.sbin/i4b/isdntrace/trace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/i4b/isdntrace/trace.c b/usr.sbin/i4b/isdntrace/trace.c index f1346f3..0a7501a 100644 --- a/usr.sbin/i4b/isdntrace/trace.c +++ b/usr.sbin/i4b/isdntrace/trace.c @@ -35,7 +35,7 @@ * trace.c - print traces of D (B) channel activity for isdn4bsd * ------------------------------------------------------------- * - * $Id: trace.c,v 1.3 1999/05/20 10:14:35 hm Exp $ + * $Id: trace.c,v 1.4 1999/05/23 23:24:21 imp Exp $ * * last edit-date: [Sun Feb 14 10:23:28 1999] * @@ -146,7 +146,7 @@ main(int argc, char *argv[]) b = &buf[sizeof(i4b_trace_hdr_t)]; - while( (c = getopt(argc, argv, "abdf:hiln:op:ru:BFPR:T:?")) != -1) + while( (c = getopt(argc, argv, "abdf:hiln:op:ru:BFPR:T:")) != -1) { switch(c) { |