aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk/main.c10
-rw-r--r--tethereal.c10
2 files changed, 4 insertions, 16 deletions
diff --git a/gtk/main.c b/gtk/main.c
index ad3d32ba8c..d9b9f35aba 100644
--- a/gtk/main.c
+++ b/gtk/main.c
@@ -1,6 +1,6 @@
/* main.c
*
- * $Id: main.c,v 1.219 2001/12/18 19:09:08 gram Exp $
+ * $Id: main.c,v 1.220 2001/12/21 20:18:40 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1136,13 +1136,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, "ringbuffer 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;
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;