From 1bf478fdef0992236d338ee0158fbcdd2e69007a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sun, 6 Jun 2010 19:14:32 +0000 Subject: Rename wtap_dump_file_write_all() to wtap_dump_file_write(), and have everybody use it; the places using the old wtap_dump_file_write() were using it in the same way the old wtap_dump_file_write_all() did. That also lets us get rid of wtap_dump_file_ferror(). Also, have the new wtap_dump_file_write() check for errors from gzwrite() and fwrite() differently - the former returns 0 on error, the latter can return a short write on error. svn path=/trunk/; revision=33113 --- wiretap/wtap-int.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'wiretap/wtap-int.h') diff --git a/wiretap/wtap-int.h b/wiretap/wtap-int.h index 1967457cf9..a8867b49b8 100644 --- a/wiretap/wtap-int.h +++ b/wiretap/wtap-int.h @@ -97,9 +97,8 @@ struct wtap_dumper { * e.g. WTAP_FILE_TSPREC_USEC */ }; -extern gboolean wtap_dump_file_write_all(wtap_dumper *wdh, const void *buf, unsigned bufsize, int *err); -extern size_t wtap_dump_file_write(wtap_dumper *wdh, const void *buf, size_t bufsize); -extern int wtap_dump_file_ferror(wtap_dumper *wdh); +extern gboolean wtap_dump_file_write(wtap_dumper *wdh, const void *buf, + size_t bufsize, int *err); extern gint wtap_num_file_types; -- cgit v1.2.3