summaryrefslogtreecommitdiff
path: root/tcpdump.c
diff options
context:
space:
mode:
authorFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-08-04 14:23:02 +0200
committerFrancois-Xavier Le Bail <devel.fx.lebail@orange.fr>2019-08-04 14:29:13 +0200
commita98167e7c9f2431319ee9f223b22bd495c2ca162 (patch)
treec404eb40439536f5cc2e3089a1242f5efdad819b /tcpdump.c
parent09822d484b0f26d197a1ea8fdf81ca6e0d698634 (diff)
downloadtcpdump-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcpdump.c b/tcpdump.c
index ba154278..9e6a2995 100644
--- a/tcpdump.c
+++ b/tcpdump.c
@@ -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