Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 22 Apr 2023 17:44:28 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5e3bb0514781 - main - pfctl: remove unneeded includes
Message-ID:  <202304221744.33MHiSbL036214@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=5e3bb05147816885f1cf25c8cfc03ceec3fa376d

commit 5e3bb05147816885f1cf25c8cfc03ceec3fa376d
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2023-04-21 09:31:44 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2023-04-22 17:43:55 +0000

    pfctl: remove unneeded includes
    
    We don't use nvlists (directly) or sysctls, so there's no need to
    include the headers.
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sbin/pfctl/pfctl.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index b5ef07064fb9..09f29b1c601c 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -40,7 +40,6 @@ __FBSDID("$FreeBSD$");
 
 #include <sys/types.h>
 #include <sys/ioctl.h>
-#include <sys/nv.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <sys/endian.h>
@@ -50,7 +49,6 @@ __FBSDID("$FreeBSD$");
 #include <net/pfvar.h>
 #include <arpa/inet.h>
 #include <net/altq/altq.h>
-#include <sys/sysctl.h>
 
 #include <err.h>
 #include <errno.h>



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