aboutsummaryrefslogtreecommitdiff
path: root/lib/libnetgraph
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2023-11-24 20:12:57 +0000
committerWarner Losh <imp@FreeBSD.org>2023-11-27 05:23:59 +0000
commita2f733abcff64628b7771a47089628b7327a88bd (patch)
tree82d32de87b0381c9e3904e1c09f0ddbbc442182a /lib/libnetgraph
parent33ccf366718d189f206f1ed6c43cbcb7b50a2e6c (diff)
downloadsrc-a2f733abcff64628b7771a47089628b7327a88bd.tar.gz
src-a2f733abcff64628b7771a47089628b7327a88bd.zip
lib: Automated cleanup of cdefs and other formatting
Apply the following automated changes to try to eliminate no-longer-needed sys/cdefs.h includes as well as now-empty blank lines in a row. Remove /^#if.*\n#endif.*\n#include\s+<sys/cdefs.h>.*\n/ Remove /\n+#include\s+<sys/cdefs.h>.*\n+#if.*\n#endif.*\n+/ Remove /\n+#if.*\n#endif.*\n+/ Remove /^#if.*\n#endif.*\n/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/types.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/param.h>/ Remove /\n+#include\s+<sys/cdefs.h>\n#include\s+<sys/capsicum.h>/ Sponsored by: Netflix
Diffstat (limited to 'lib/libnetgraph')
-rw-r--r--lib/libnetgraph/debug.c1
-rw-r--r--lib/libnetgraph/msg.c1
-rw-r--r--lib/libnetgraph/sock.c1
3 files changed, 0 insertions, 3 deletions
diff --git a/lib/libnetgraph/debug.c b/lib/libnetgraph/debug.c
index cf8600bea8e5..33e793bdb38e 100644
--- a/lib/libnetgraph/debug.c
+++ b/lib/libnetgraph/debug.c
@@ -38,7 +38,6 @@
* $Whistle: debug.c,v 1.24 1999/01/24 01:15:33 archie Exp $
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/ioctl.h>
diff --git a/lib/libnetgraph/msg.c b/lib/libnetgraph/msg.c
index fb62b84ed4ef..b87003ae5e4c 100644
--- a/lib/libnetgraph/msg.c
+++ b/lib/libnetgraph/msg.c
@@ -38,7 +38,6 @@
* $Whistle: msg.c,v 1.9 1999/01/20 00:57:23 archie Exp $
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdarg.h>
diff --git a/lib/libnetgraph/sock.c b/lib/libnetgraph/sock.c
index 94bcd730b963..825ddd0297ed 100644
--- a/lib/libnetgraph/sock.c
+++ b/lib/libnetgraph/sock.c
@@ -38,7 +38,6 @@
* $Whistle: sock.c,v 1.12 1999/01/20 00:57:23 archie Exp $
*/
-#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdarg.h>