git: pflogd(8): Fix the warning and raise WARNS back up to 5.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed Feb 11 02:18:37 PST 2015


commit 4bb97943a45ff9584847a04245e40bcf634020bf
Author: Sascha Wildner <saw at online.de>
Date:   Wed Feb 11 10:57:36 2015 +0100

    pflogd(8): Fix the warning and raise WARNS back up to 5.
    
    The issue here is that pcap-int.h (from libpcap) is included without
    also including libpcap's config.h. This results in HAVE_STRLCPY not
    being set which makes visible the strlcpy() compatibility macro in
    pcap-int.h where gcc ultimately warns.
    
    Fix by including libpcap's config.h so the pcap-int.h header knows
    that we have strlcpy().
    
    While here, fix a wrong comparison of if_exists()'s result with -1
    as if_exists() only returns 0 or 1 (as correctly pointed out by grim7
    in the IRC channel).

Summary of changes:
 usr.sbin/pflogd/Makefile | 5 +++--
 usr.sbin/pflogd/pflogd.c | 2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/4bb97943a45ff9584847a04245e40bcf634020bf


-- 
DragonFly BSD source repository



More information about the Commits mailing list