aboutsummaryrefslogtreecommitdiffstats
path: root/capinfos.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-01-19 13:55:45 -0800
committerGuy Harris <guy@alum.mit.edu>2019-01-19 21:56:38 +0000
commit0c89d8c33ac18b004fbac587aaf8d60f5ad78555 (patch)
tree2b55a20635815648414a01ca8501a3fc06f95699 /capinfos.c
parent4b6dbf4baf7cd06bd7936d622ff351ff4039ce29 (diff)
Rename a Boolean flag variable to reflect the non-default behavior.
This makes it slightly clearer, from code inspection, what the -C flag does. The default behavior is to continue; -C cause capinfos to stop, rather than continue, after an open failure. Change-Id: I8bc67ce61c5d828c7f0ed87ee397ef994ff99aa4 Reviewed-on: https://code.wireshark.org/review/31621 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'capinfos.c')
-rw-r--r--capinfos.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/capinfos.c b/capinfos.c
index 0b0e8ad4d1..afab0dbac4 100644
--- a/capinfos.c
+++ b/capinfos.c
@@ -95,7 +95,7 @@
* failure.
*/
-static gboolean continue_after_wtap_open_offline_failure = TRUE;
+static gboolean stop_after_wtap_open_offline_failure = FALSE;
/*
* table report variables
@@ -1561,7 +1561,7 @@ main(int argc, char *argv[])
break;
case 'C':
- continue_after_wtap_open_offline_failure = FALSE;
+ stop_after_wtap_open_offline_failure = TRUE;
break;
case 'A':
@@ -1679,7 +1679,7 @@ main(int argc, char *argv[])
if (!wth) {
cfile_open_failure_message("capinfos", argv[opt], err, err_info);
overall_error_status = 2; /* remember that an error has occurred */
- if (!continue_after_wtap_open_offline_failure)
+ if (stop_after_wtap_open_offline_failure)
goto exit;
}