Module Name:    src
Committed By:   joerg
Date:           Fri Aug 28 11:20:55 UTC 2015

Modified Files:
        src/external/bsd/libpcap/dist: pcap-common.c

Log Message:
Simplify to avoid negation-only-applies-to-LHS warning.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/external/bsd/libpcap/dist/pcap-common.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/bsd/libpcap/dist/pcap-common.c
diff -u src/external/bsd/libpcap/dist/pcap-common.c:1.3 src/external/bsd/libpcap/dist/pcap-common.c:1.4
--- src/external/bsd/libpcap/dist/pcap-common.c:1.3	Tue Mar 31 21:39:42 2015
+++ src/external/bsd/libpcap/dist/pcap-common.c	Fri Aug 28 11:20:55 2015
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcap-common.c,v 1.3 2015/03/31 21:39:42 christos Exp $	*/
+/*	$NetBSD: pcap-common.c,v 1.4 2015/08/28 11:20:55 joerg Exp $	*/
 
 /*
  * Copyright (c) 1993, 1994, 1995, 1996, 1997
@@ -24,7 +24,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pcap-common.c,v 1.3 2015/03/31 21:39:42 christos Exp $");
+__RCSID("$NetBSD: pcap-common.c,v 1.4 2015/08/28 11:20:55 joerg Exp $");
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -1326,7 +1326,7 @@ swap_nflog_header(const struct pcap_pkth
 		return;
 	}
 
-	if (!(nfhdr->nflog_version) == 0) {
+	if (nfhdr->nflog_version != 0) {
 		/* Unknown NFLOG version */
 		return;
 	}

Reply via email to