diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-04-20 00:19:01 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-04-20 07:19:41 +0000 |
commit | bce5ec919e2fd197e0042dfabf5186d0d6f6eb47 (patch) | |
tree | e96213c604d0a596e9cbef5c4d9d4839b4b872d1 /tshark.c | |
parent | b0c48f3b4fd4a1e8e7552265c1b5393ca991a40f (diff) |
Use the new cfile_XXX_failure_message() routines more broadly.
Change-Id: I7814b3fd0353f4836ae61cbdbd4e13f659cbcb59
Reviewed-on: https://code.wireshark.org/review/21239
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'tshark.c')
-rw-r--r-- | tshark.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -643,6 +643,7 @@ main(int argc, char *argv[]) {0, 0, 0, 0 } }; gboolean arg_error = FALSE; + const char *exp_pdu_filename = NULL; #ifdef _WIN32 int result; @@ -1864,7 +1865,6 @@ main(int argc, char *argv[]) /* PDU export requested. Take the ownership of the '-w' file, apply tap * filters and start tapping. */ if (pdu_export_arg) { - const char *exp_pdu_filename; const char *exp_pdu_tap_name = pdu_export_arg; const char *exp_pdu_filter = dfilter; /* may be NULL to disable filter */ char *exp_pdu_error; @@ -1978,7 +1978,7 @@ main(int argc, char *argv[]) if (pdu_export_arg) { err = exp_pdu_close(&exp_pdu_tap_data); if (err) { - cmdarg_err("%s", wtap_strerror(err)); + cfile_close_failure_message(exp_pdu_filename, err); exit_status = 2; } g_free(pdu_export_arg); |