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 --- capinfos.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'capinfos.c') diff --git a/capinfos.c b/capinfos.c index 647b6cb093..f049864673 100644 --- a/capinfos.c +++ b/capinfos.c @@ -1725,8 +1725,7 @@ main(int argc, char *argv[]) wth = wtap_open_offline(argv[opt], WTAP_TYPE_AUTO, &err, &err_info, FALSE); if (!wth) { - cfile_open_failure_message("capinfos", argv[opt], err, err_info, FALSE, - WTAP_TYPE_AUTO); + 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) goto exit; -- cgit v1.2.1