Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Jun 2019 22:28:29 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r348821 - stable/11/sys/contrib/ipfilter/netinet
Message-ID:  <201906082228.x58MSTWC093593@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Sat Jun  8 22:28:28 2019
New Revision: 348821
URL: https://svnweb.freebsd.org/changeset/base/348821

Log:
  MFC r348312:
  
  style(9)
  
  Approved by:	re (gjb@)

Modified:
  stable/11/sys/contrib/ipfilter/netinet/fil.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/contrib/ipfilter/netinet/fil.c
==============================================================================
--- stable/11/sys/contrib/ipfilter/netinet/fil.c	Sat Jun  8 22:27:09 2019	(r348820)
+++ stable/11/sys/contrib/ipfilter/netinet/fil.c	Sat Jun  8 22:28:28 2019	(r348821)
@@ -3913,7 +3913,7 @@ ipf_fixskip(listp, rp, addremove)
 	for (fp = *listp; (fp != NULL) && (fp != rp); fp = fp->fr_next)
 		rules++;
 
-	if (!fp)
+	if (fp == NULL)
 		return;
 
 	for (rn = 0, fp = *listp; fp && (fp != rp); fp = fp->fr_next, rn++)
@@ -5006,7 +5006,7 @@ frrequest(softc, unit, req, data, set, makecopy)
 		return error;
 	}
 
-  	if (!f) {
+	if (f == NULL) {
 		/*
 		 * At the end of this, ftail must point to the place where the
 		 * new rule is to be saved/inserted/added.
@@ -5052,7 +5052,7 @@ frrequest(softc, unit, req, data, set, makecopy)
 	 * Request to remove a rule.
 	 */
 	if (addrem == 1) {
-		if (!f) {
+		if (f == NULL) {
 			IPFERROR(29);
 			error = ESRCH;
 		} else {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906082228.x58MSTWC093593>