aboutsummaryrefslogtreecommitdiffstats
path: root/dumpcap.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-08-22 18:49:31 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-08-22 18:49:31 +0000
commit9e7ce8b817dc9b6a26ae3544628aad377d233ac5 (patch)
treefd93378262678a367f1dacd50d39095569c86f8e /dumpcap.c
parent347ea71bae842d3da717c8c45a3529f1027dd338 (diff)
fix compiler warning on Debian wheezy (gcc 4.7.2)
dumpcap.c:193:10: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result] for some reason, using (void)write(fd, ...) did not do the trick svn path=/trunk/; revision=51476
Diffstat (limited to 'dumpcap.c')
-rw-r--r--dumpcap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dumpcap.c b/dumpcap.c
index 582821c799..cdf89c73cf 100644
--- a/dumpcap.c
+++ b/dumpcap.c
@@ -184,13 +184,14 @@ void
enable_kernel_bpf_jit_compiler(void)
{
int fd;
+ ssize_t written _U_;
static const char file[] = "/proc/sys/net/core/bpf_jit_enable";
fd = open(file, O_WRONLY);
if (fd < 0)
return;
- write(fd, "1", strlen("1"));
+ written = write(fd, "1", strlen("1"));
close(fd);
}