diff options
author | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-06-06 22:24:48 +0000 |
---|---|---|
committer | guy <guy@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-06-06 22:24:48 +0000 |
commit | fcf05cd6e73d291fab9cd9deefb0403684a10a49 (patch) | |
tree | 83b9f4be24a9214bd3b7363528329d0f8da26c74 | |
parent | 0b3b66cf7770cec04d5c5e0382f6529c4f74e168 (diff) |
Get rid of file_write(); nobody uses it, and file writers should use
wtap_dump_file_write() (it does the right error checking for you, and
returns FALSE on failure and gives you the right error code).
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@33117 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r-- | wiretap/file_wrappers.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wiretap/file_wrappers.h b/wiretap/file_wrappers.h index 3122a5e50f..a51d722056 100644 --- a/wiretap/file_wrappers.h +++ b/wiretap/file_wrappers.h @@ -34,7 +34,6 @@ extern FILE_T file_open(const char *path, const char *mode); #define filed_open gzdopen /* XX: gzread and gzwrite return number of *bytes* (not number of elements) */ #define file_read(buf, bsize, count, file) gzread((file),(buf),(unsigned)((count)*(bsize))) -#define file_write(buf, bsize, count, file) gzwrite((file),(buf),((count)*(bsize))) #define file_close gzclose #define file_getc gzgetc #define file_gets(buf, len, file) gzgets((file), (buf), (len)) @@ -44,9 +43,8 @@ extern FILE_T file_open(const char *path, const char *mode); #define file_open(path, mode) ws_fopen(path, mode) #define filed_open fdopen -/* XX: file_read and file_write defined to return number of *bytes* to be consistent with gzread & gzwrite */ +/* XX: file_read defined to return number of *bytes* to be consistent with gzread */ #define file_read(buf, bsize, count, file) ((bsize) * fread((buf), (bsize), (count), (file))) -#define file_write(buf, bsize, count, file) ((bsize) * fwrite((buf), (bsize), (count), (file))) #define file_close fclose #define file_getc fgetc #define file_gets fgets |