commit | a98167e7c9f2431319ee9f223b22bd495c2ca162 | [log] [tgz] |
---|---|---|
author | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | Sun Aug 04 14:23:02 2019 +0200 |
committer | Francois-Xavier Le Bail <devel.fx.lebail@orange.fr> | Sun Aug 04 14:29:13 2019 +0200 |
tree | c404eb40439536f5cc2e3089a1242f5efdad819b | |
parent | 09822d484b0f26d197a1ea8fdf81ca6e0d698634 [diff] |
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
diff --git a/tcpdump.c b/tcpdump.c index ba15427..9e6a299 100644 --- a/tcpdump.c +++ b/tcpdump.c
@@ -1447,7 +1447,9 @@ 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