diff options
author | Warner Losh <imp@FreeBSD.org> | 2023-11-24 20:12:57 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2023-11-27 05:23:59 +0000 |
commit | a2f733abcff64628b7771a47089628b7327a88bd (patch) | |
tree | 82d32de87b0381c9e3904e1c09f0ddbbc442182a /lib/libcam | |
parent | 33ccf366718d189f206f1ed6c43cbcb7b50a2e6c (diff) | |
download | src-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/libcam')
-rw-r--r-- | lib/libcam/camlib.c | 1 | ||||
-rw-r--r-- | lib/libcam/camlib.h | 1 | ||||
-rw-r--r-- | lib/libcam/scsi_cmdparse.c | 1 | ||||
-rw-r--r-- | lib/libcam/scsi_wrap.c | 1 |
4 files changed, 0 insertions, 4 deletions
diff --git a/lib/libcam/camlib.c b/lib/libcam/camlib.c index 6074cdebeb63..6b3e62e13e6f 100644 --- a/lib/libcam/camlib.c +++ b/lib/libcam/camlib.c @@ -25,7 +25,6 @@ * SUCH DAMAGE. */ -#include <sys/cdefs.h> #include <sys/types.h> #include <sys/param.h> #include <assert.h> diff --git a/lib/libcam/camlib.h b/lib/libcam/camlib.h index 621ac5bf08d4..c82a529181cb 100644 --- a/lib/libcam/camlib.h +++ b/lib/libcam/camlib.h @@ -64,7 +64,6 @@ #ifndef _CAMLIB_H #define _CAMLIB_H -#include <sys/cdefs.h> #include <sys/param.h> #include <cam/cam.h> diff --git a/lib/libcam/scsi_cmdparse.c b/lib/libcam/scsi_cmdparse.c index 81c8708c8d68..5aa69cd88fdb 100644 --- a/lib/libcam/scsi_cmdparse.c +++ b/lib/libcam/scsi_cmdparse.c @@ -37,7 +37,6 @@ * From: scsi.c,v 1.8 1997/02/22 15:07:54 peter Exp $ */ -#include <sys/cdefs.h> #include <sys/types.h> #include <stdlib.h> diff --git a/lib/libcam/scsi_wrap.c b/lib/libcam/scsi_wrap.c index e5bd76e6e9be..584f760bcc42 100644 --- a/lib/libcam/scsi_wrap.c +++ b/lib/libcam/scsi_wrap.c @@ -28,7 +28,6 @@ * details. */ -#include <sys/cdefs.h> #include <sys/types.h> #include <err.h> |