aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--capture_opts.c2
-rw-r--r--capture_opts.h4
-rw-r--r--dumpcap.c2
-rw-r--r--tshark.c2
4 files changed, 5 insertions, 5 deletions
diff --git a/capture_opts.c b/capture_opts.c
index 628fe60880..e87bc9f653 100644
--- a/capture_opts.c
+++ b/capture_opts.c
@@ -803,7 +803,7 @@ capture_opts_add_opt(capture_options *capture_opts, int opt, const char *optarg_
int status, snaplen;
switch(opt) {
- case LONGOPT_NUM_CAP_COMMENT: /* capture comment */
+ case LONGOPT_CAPTURE_COMMENT: /* capture comment */
if (!capture_opts->capture_comment) {
capture_opts->capture_comment = g_ptr_array_new_with_free_func(g_free);
}
diff --git a/capture_opts.h b/capture_opts.h
index cb1aa499f9..1452f30484 100644
--- a/capture_opts.h
+++ b/capture_opts.h
@@ -44,7 +44,7 @@ extern "C" {
* In short: we must not use 1 here, which is another reason to use
* values outside the range of ASCII graphic characters.
*/
-#define LONGOPT_NUM_CAP_COMMENT LONGOPT_BASE_CAPTURE+1
+#define LONGOPT_CAPTURE_COMMENT LONGOPT_BASE_CAPTURE+1
#define LONGOPT_LIST_TSTAMP_TYPES LONGOPT_BASE_CAPTURE+2
#define LONGOPT_SET_TSTAMP_TYPE LONGOPT_BASE_CAPTURE+3
#define LONGOPT_COMPRESS_TYPE LONGOPT_BASE_CAPTURE+4
@@ -76,7 +76,7 @@ extern "C" {
#endif
#define LONGOPT_CAPTURE_COMMON \
- {"capture-comment", required_argument, NULL, LONGOPT_NUM_CAP_COMMENT}, \
+ {"capture-comment", required_argument, NULL, LONGOPT_CAPTURE_COMMENT}, \
{"autostop", required_argument, NULL, 'a'}, \
{"ring-buffer", required_argument, NULL, 'b'}, \
LONGOPT_BUFFER_SIZE \
diff --git a/dumpcap.c b/dumpcap.c
index 712b137923..e54725520a 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -5139,7 +5139,7 @@ main(int argc, char *argv[])
case 's': /* Set the snapshot (capture) length */
case 'w': /* Write to capture file x */
case 'y': /* Set the pcap data link type */
- case LONGOPT_NUM_CAP_COMMENT: /* add a capture comment */
+ case LONGOPT_CAPTURE_COMMENT: /* add a capture comment */
#ifdef HAVE_PCAP_REMOTE
case 'u': /* Use UDP for data transfer */
case 'r': /* Capture own RPCAP traffic too */
diff --git a/tshark.c b/tshark.c
index 89f7492977..7da895d502 100644
--- a/tshark.c
+++ b/tshark.c
@@ -1100,7 +1100,7 @@ main(int argc, char *argv[])
#endif
case 's': /* Set the snapshot (capture) length */
case 'y': /* Set the pcap data link type */
- case LONGOPT_NUM_CAP_COMMENT: /* add a capture comment */
+ case LONGOPT_CAPTURE_COMMENT: /* add a capture comment */
#ifdef CAN_SET_CAPTURE_BUFFER_SIZE
case 'B': /* Buffer size */
#endif