mirror of
https://github.com/the-tcpdump-group/tcpdump.git
synced 2025-01-09 09:18:25 +08:00
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
This commit is contained in:
parent
09822d484b
commit
a98167e7c9
@ -1447,7 +1447,9 @@ main(int argc, char **argv)
|
|||||||
char ebuf[PCAP_ERRBUF_SIZE];
|
char ebuf[PCAP_ERRBUF_SIZE];
|
||||||
char VFileLine[PATH_MAX + 1];
|
char VFileLine[PATH_MAX + 1];
|
||||||
char *username = NULL;
|
char *username = NULL;
|
||||||
|
#ifndef _WIN32
|
||||||
const char *chroot_dir = NULL;
|
const char *chroot_dir = NULL;
|
||||||
|
#endif
|
||||||
char *ret = NULL;
|
char *ret = NULL;
|
||||||
char *end;
|
char *end;
|
||||||
#ifdef HAVE_PCAP_FINDALLDEVS
|
#ifdef HAVE_PCAP_FINDALLDEVS
|
||||||
|
Loading…
Reference in New Issue
Block a user