diff options
author | Stephen Fisher <steve@stephen-fisher.com> | 2010-09-08 18:47:14 +0000 |
---|---|---|
committer | Stephen Fisher <steve@stephen-fisher.com> | 2010-09-08 18:47:14 +0000 |
commit | 390927ce12af637d46f892618203090cf6376e16 (patch) | |
tree | 9cf3446da9744d81f11a6545637619e58a738c32 /capture_opts.c | |
parent | 875c97aedf53ffda0f026e8e925896cf8497dca9 (diff) |
Follow up to rev 34073: Since "-b files:0" is no longer necessary to
override the default of turning on a multiple file ring buffer, require
a positive integer to be specified for the files value.
svn path=/trunk/; revision=34082
Diffstat (limited to 'capture_opts.c')
-rw-r--r-- | capture_opts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/capture_opts.c b/capture_opts.c index a736037bfb..793477c997 100644 --- a/capture_opts.c +++ b/capture_opts.c @@ -269,7 +269,7 @@ get_ring_arguments(capture_options *capture_opts, const char *arg) if (strcmp(arg,"files") == 0) { capture_opts->has_ring_num_files = TRUE; - capture_opts->ring_num_files = get_natural_int(p, "number of ring buffer files"); + capture_opts->ring_num_files = get_positive_int(p, "number of ring buffer files"); } else if (strcmp(arg,"filesize") == 0) { capture_opts->has_autostop_filesize = TRUE; capture_opts->autostop_filesize = get_positive_int(p, "ring buffer filesize"); |