summaryrefslogtreecommitdiff
path: root/dumpcap.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 /dumpcap.c
parent11bdadacc27d3781c3fd0d759068fddd3da9107c (diff)
downloadwireshark-caa1e87410fb74606f2ec91b5fd1b897053149bf.tar.gz
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 'dumpcap.c')
-rw-r--r--dumpcap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 74801cc86a..c5e8679b7b 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -220,9 +220,9 @@ enable_kernel_bpf_jit_compiler(void)
if (fd < 0)
return;
- written = write(fd, "1", strlen("1"));
+ written = ws_write(fd, "1", strlen("1"));
- close(fd);
+ ws_close(fd);
}
#endif