From e5bf4ceec7bf1a5a08852ad3a449a5f259f9bed5 Mon Sep 17 00:00:00 2001 From: Denis Ovsienko Date: Mon, 2 Aug 2021 00:32:46 +0100 Subject: Move capdns from tcpdump.c to addrtoname.c. Address the warning below (specific to a few versions of Clang, CMake and FreeBSD) and update the exemption rule comment in build.sh. tcpdump.c:244:16: warning: no previous extern declaration for non-static variable 'capdns' [-Wmissing-variable-declarations] --- addrtoname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addrtoname.c') diff --git a/addrtoname.c b/addrtoname.c index 58ced4f9..eb3df77e 100644 --- a/addrtoname.c +++ b/addrtoname.c @@ -254,7 +254,7 @@ intoa(uint32_t addr) static uint32_t f_netmask; static uint32_t f_localnet; #ifdef HAVE_CASPER -extern cap_channel_t *capdns; +cap_channel_t *capdns; #endif /* -- cgit v1.2.1