summaryrefslogtreecommitdiff
path: root/capinfos.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-02-15 21:47:57 +0000
committerGuy Harris <guy@alum.mit.edu>2009-02-15 21:47:57 +0000
commitace4af44fc2aecc93c7663f6f27b8deaae5c2a72 (patch)
treeab9611fe056fd19c3674191f606c15790b40380c /capinfos.c
parent8f2e6281c19dbda07c8ee2d7a7f4c3954480f632 (diff)
downloadwireshark-ace4af44fc2aecc93c7663f6f27b8deaae5c2a72.tar.gz
Add a routine to report write errors to the list of failure-reporting
routines handled by epan/report_err.c. Move copy_binary_file() in file.c to epan/filesystem.c, and rename it to copy_file_binary_mode() (to clarify that it *can* copy text files; arguably, *all* files are "binary" unless you're on, say, an IBM 1401 :-)). Have it use the report_err.c routines, so it works in console-mode programs. Clean up some comments while we're at it. svn path=/trunk/; revision=27456
Diffstat (limited to 'capinfos.c')
-rw-r--r--capinfos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/capinfos.c b/capinfos.c
index 5941fffa87..1eb6b6a7e3 100644
--- a/capinfos.c
+++ b/capinfos.c
@@ -306,7 +306,7 @@ main(int argc, char *argv[])
g_warning("capinfos: init_progfile_dir(): %s", init_progfile_dir_error);
g_free(init_progfile_dir_error);
} else {
- init_report_err(failure_message,NULL,NULL);
+ init_report_err(failure_message,NULL,NULL,NULL);
init_plugins();
}
#endif