aboutsummaryrefslogtreecommitdiffstats
path: root/editcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-05-10 20:59:53 -0700
committerGuy Harris <guy@alum.mit.edu>2019-05-11 04:00:47 +0000
commitac66f397275235ffda2085d837e3681502c28b68 (patch)
tree2ffa819db012603d84f46157fe7206b8ed6def4b /editcap.c
parent16ca1b5aca2fbb3bce20b644173eaa7e42ca5901 (diff)
Small cleanups.
Rename a variable to reflect the final name given to the option to get rid of decryption secrets stored in the file. Fix whitespace. Change-Id: I19ea14fa205369500790adaa00244a15412548eb Reviewed-on: https://code.wireshark.org/review/33154 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'editcap.c')
-rw-r--r--editcap.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/editcap.c b/editcap.c
index 1462e98681..eb8c20bd9c 100644
--- a/editcap.c
+++ b/editcap.c
@@ -170,7 +170,7 @@ static gboolean rem_vlan = FALSE;
static gboolean dup_detect = FALSE;
static gboolean dup_detect_by_time = FALSE;
static gboolean skip_radiotap = FALSE;
-static gboolean remove_all_secrets = FALSE;
+static gboolean discard_all_secrets = FALSE;
static int do_strict_time_adjustment = FALSE;
static struct time_adjustment strict_time_adj = {NSTIME_INIT_ZERO, 0}; /* strict time adjustment */
@@ -1018,7 +1018,7 @@ main(int argc, char *argv[])
#define LONGOPT_SKIP_RADIOTAP_HEADER 0x8101
#define LONGOPT_SEED 0x8102
#define LONGOPT_INJECT_SECRETS 0x8103
-#define LONGOPT_DISCARD_ALL_SECRETS 0x8104
+#define LONGOPT_DISCARD_ALL_SECRETS 0x8104
static const struct option long_options[] = {
{"novlan", no_argument, NULL, LONGOPT_NO_VLAN},
{"skip-radiotap-header", no_argument, NULL, LONGOPT_SKIP_RADIOTAP_HEADER},
@@ -1160,7 +1160,7 @@ main(int argc, char *argv[])
case LONGOPT_DISCARD_ALL_SECRETS:
{
- remove_all_secrets = TRUE;
+ discard_all_secrets = TRUE;
break;
}
@@ -1487,7 +1487,7 @@ main(int argc, char *argv[])
/*
* Discard any secrets we read in while opening the file.
*/
- if (remove_all_secrets) {
+ if (discard_all_secrets) {
wtap_dump_params_discard_decryption_secrets(&params);
}
@@ -2006,7 +2006,7 @@ main(int argc, char *argv[])
}
}
- if (remove_all_secrets) {
+ if (discard_all_secrets) {
/*
* Discard any secrets we've read since the last packet
* we wrote.