aboutsummaryrefslogtreecommitdiffstats
path: root/tethereal.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2001-12-21 20:18:40 +0000
committerGuy Harris <guy@alum.mit.edu>2001-12-21 20:18:40 +0000
commitb89a117a611d9bc34501e2fdccc9aa7fc7d87ea5 (patch)
tree428a650c025e919c7f4c891544946cba938907c4 /tethereal.c
parent393fba6ff29aabd5f0d1473c96da9db08beb6f7f (diff)
There is no such thing as an optional parameter to a command-line flag
if you're using "getopt" - if a flag requires a parameter, not specifying the parameter is an error. svn path=/trunk/; revision=4437
Diffstat (limited to 'tethereal.c')
-rw-r--r--tethereal.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/tethereal.c b/tethereal.c
index 75d7c9b994..55a333834c 100644
--- a/tethereal.c
+++ b/tethereal.c
@@ -1,6 +1,6 @@
/* tethereal.c
*
- * $Id: tethereal.c,v 1.110 2001/12/21 20:06:43 guy Exp $
+ * $Id: tethereal.c,v 1.111 2001/12/21 20:18:39 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -422,13 +422,7 @@ main(int argc, char *argv[])
case 'b': /* Ringbuffer option */
#ifdef HAVE_LIBPCAP
cfile.ringbuffer_on = TRUE;
- /* get optional ringbuffer number of files parameter */
- if (optarg[0] != '-') {
- cfile.ringbuffer_num_files = get_positive_int(optarg, "ring buffer number of files");
- } else {
- cfile.ringbuffer_num_files = RINGBUFFER_MIN_NUM_FILES;
- optind--;
- }
+ cfile.ringbuffer_num_files = get_positive_int(optarg, "number of ring buffer files");
#else
capture_option_specified = TRUE;
arg_error = TRUE;