From 9e9d284d9157a8b79964015be868f4e8c43274c3 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 20 Apr 2017 11:23:51 -0700 Subject: 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 --- reordercap.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'reordercap.c') 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; -- cgit v1.2.1