diff options
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-08-04 14:23:02 +0200 |
---|---|---|
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | 2019-08-04 14:29:13 +0200 |
commit | a98167e7c9f2431319ee9f223b22bd495c2ca162 (patch) | |
tree | c404eb40439536f5cc2e3089a1242f5efdad819b /tcpdump.c | |
parent | 09822d484b0f26d197a1ea8fdf81ca6e0d698634 (diff) | |
download | tcpdump-a98167e7c9f2431319ee9f223b22bd495c2ca162.tar.gz |
Fix a warning
No chroot on Windows.
The warning was:
C:\projects\tcpdump\tcpdump.c(1450): warning C4189: 'chroot_dir':
local variable is initialized but not referenced
Diffstat (limited to 'tcpdump.c')
-rw-r--r-- | tcpdump.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1447,7 +1447,9 @@ main(int argc, char **argv) char ebuf[PCAP_ERRBUF_SIZE]; char VFileLine[PATH_MAX + 1]; char *username = NULL; +#ifndef _WIN32 const char *chroot_dir = NULL; +#endif char *ret = NULL; char *end; #ifdef HAVE_PCAP_FINDALLDEVS |