Add a routine to report write errors to the list of failure-reporting
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 15 Feb 2009 21:47:57 +0000 (21:47 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 15 Feb 2009 21:47:57 +0000 (21:47 +0000)
commit1372d880e493ce404f3b1cb8a1bad010d3749f88
treeab9611fe056fd19c3674191f606c15790b40380c
parenta5983c36bd9e5653d4be552ce0b9b3a3a2c37b79
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27456 f5534014-38df-0310-8fa8-9805f1628bb7
13 files changed:
capinfos.c
dftest.c
editcap.c
epan/epan.c
epan/epan.h
epan/filesystem.c
epan/filesystem.h
epan/report_err.c
epan/report_err.h
file.c
gtk/main.c
rawshark.c
tshark.c