diff options
author | Guy Harris <guy@alum.mit.edu> | 2010-06-06 19:14:32 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2010-06-06 19:14:32 +0000 |
commit | 1bf478fdef0992236d338ee0158fbcdd2e69007a (patch) | |
tree | e1bf983e5ebcfb0d88953f49acec3bf24b219d35 /wiretap/wtap-int.h | |
parent | 1b3be7a75487d5f5b3e6cbb120cf84edb4405065 (diff) |
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
Diffstat (limited to 'wiretap/wtap-int.h')
-rw-r--r-- | wiretap/wtap-int.h | 5 |
1 files changed, 2 insertions, 3 deletions
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; |