forked from osmocom/wireshark
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>
This commit is contained in:
parent
4b6dbf4baf
commit
0c89d8c33a
|
@ -95,7 +95,7 @@
|
||||||
* failure.
|
* failure.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static gboolean continue_after_wtap_open_offline_failure = TRUE;
|
static gboolean stop_after_wtap_open_offline_failure = FALSE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* table report variables
|
* table report variables
|
||||||
|
@ -1561,7 +1561,7 @@ main(int argc, char *argv[])
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'C':
|
case 'C':
|
||||||
continue_after_wtap_open_offline_failure = FALSE;
|
stop_after_wtap_open_offline_failure = TRUE;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'A':
|
case 'A':
|
||||||
|
@ -1679,7 +1679,7 @@ main(int argc, char *argv[])
|
||||||
if (!wth) {
|
if (!wth) {
|
||||||
cfile_open_failure_message("capinfos", argv[opt], err, err_info);
|
cfile_open_failure_message("capinfos", argv[opt], err, err_info);
|
||||||
overall_error_status = 2; /* remember that an error has occurred */
|
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;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue