aboutsummaryrefslogtreecommitdiffstats
path: root/capture_opts.c
diff options
context:
space:
mode:
authorGuy Harris <gharris@sonic.net>2021-07-14 02:15:56 -0700
committerGuy Harris <gharris@sonic.net>2021-07-14 09:51:54 +0000
commitdfef4a750d95054571b8f8d978f655c83d87b6e4 (patch)
tree76df24f8315ece89896d480908220a42d09185d8 /capture_opts.c
parent95dc4f52bc6bbd1a4608e7ba81ccc0c1fa48f7ba (diff)
Rename LONGOPT_NUM_CAP_COMMENT to LONGOPT_CAPTURE_COMMENT.
The latter is what editcap calls --capture-comment, and the _NUM serves no purpose whatsoever. One #define name for it suffices.
Diffstat (limited to 'capture_opts.c')
-rw-r--r--capture_opts.c2
1 files changed, 1 insertions, 1 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);
}