aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/file_access.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-11-08 02:31:01 -0800
committerGuy Harris <guy@alum.mit.edu>2015-11-08 10:32:09 +0000
commitcaa1e87410fb74606f2ec91b5fd1b897053149bf (patch)
tree7d46afa570a24957716f5b74add64760bfeb5079 /wiretap/file_access.c
parent11bdadacc27d3781c3fd0d759068fddd3da9107c (diff)
Use ws_{read,write,fdopen,close}.
Be more consistent about using the ws_ routines, as we suggest in README.developer. In C++ on UN*X, define ws_close as ::close rather than close, so that it works even in classes with methods or members named "close". Change-Id: Ide2652229e6b6b4624cbddae0e909a4ea1efa591 Reviewed-on: https://code.wireshark.org/review/11637 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/file_access.c')
-rw-r--r--wiretap/file_access.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/file_access.c b/wiretap/file_access.c
index fad807bd2f..9d59f1274c 100644
--- a/wiretap/file_access.c
+++ b/wiretap/file_access.c
@@ -2513,14 +2513,14 @@ wtap_dump_file_fdopen(wtap_dumper *wdh, int fd)
if(wdh->compressed) {
return gzwfile_fdopen(fd);
} else {
- return fdopen(fd, "wb");
+ return ws_fdopen(fd, "wb");
}
}
#else
static WFILE_T
wtap_dump_file_fdopen(wtap_dumper *wdh _U_, int fd)
{
- return fdopen(fd, "wb");
+ return ws_fdopen(fd, "wb");
}
#endif