aboutsummaryrefslogtreecommitdiffstats
path: root/epan/epan.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 /epan/epan.c
parent8f2e6281c19dbda07c8ee2d7a7f4c3954480f632 (diff)
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 'epan/epan.c')
-rw-r--r--epan/epan.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/epan.c b/epan/epan.c
index c835defd85..7e496c008f 100644
--- a/epan/epan.c
+++ b/epan/epan.c
@@ -75,9 +75,11 @@ epan_init(void (*register_all_protocols_func)(register_cb cb, gpointer client_da
gpointer client_data,
void (*report_failure)(const char *, va_list),
void (*report_open_failure)(const char *, int, gboolean),
- void (*report_read_failure)(const char *, int))
+ void (*report_read_failure)(const char *, int),
+ void (*report_write_failure)(const char *, int))
{
- init_report_err(report_failure, report_open_failure, report_read_failure);
+ init_report_err(report_failure, report_open_failure,
+ report_read_failure, report_write_failure);
/* initialize memory allocation subsystem */
ep_init_chunk();