summaryrefslogtreecommitdiff
path: root/reordercap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-04-20 11:23:51 -0700
committerGuy Harris <guy@alum.mit.edu>2017-04-20 18:24:20 +0000
commit9e9d284d9157a8b79964015be868f4e8c43274c3 (patch)
treebad43c0cd5b46eb04fd25ed9a5cf6f598d731391 /reordercap.c
parentd09ef614598cf6b714059f39191f09af5701bc93 (diff)
downloadwireshark-9e9d284d9157a8b79964015be868f4e8c43274c3.tar.gz
Have separate routines for open-for-reading and open-for-writing errors.
Expand comments while we're at it. Change-Id: I6dcc791eab1c9e323a9572f3d54720d223bdd64b Reviewed-on: https://code.wireshark.org/review/21252 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'reordercap.c')
-rw-r--r--reordercap.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/reordercap.c b/reordercap.c
index a66f928fbc..ec7d4ce8ef 100644
--- a/reordercap.c
+++ b/reordercap.c
@@ -295,8 +295,7 @@ main(int argc, char *argv[])
open_routine reader to use, then the following needs to change. */
wth = wtap_open_offline(infile, WTAP_TYPE_AUTO, &err, &err_info, TRUE);
if (wth == NULL) {
- cfile_open_failure_message("reordercap", infile, err, err_info,
- FALSE, WTAP_TYPE_AUTO);
+ cfile_open_failure_message("reordercap", infile, err, err_info);
ret = OPEN_ERROR;
goto clean_exit;
}
@@ -318,8 +317,8 @@ main(int argc, char *argv[])
idb_inf = NULL;
if (pdh == NULL) {
- cfile_open_failure_message("reordercap", outfile, err, err_info, TRUE,
- wtap_file_type_subtype(wth));
+ cfile_dump_open_failure_message("reordercap", outfile, err,
+ wtap_file_type_subtype(wth));
wtap_block_array_free(shb_hdrs);
wtap_block_array_free(nrb_hdrs);
ret = OUTPUT_FILE_ERROR;