git: 1fcc50004ceb - main - ipfilter: Removed unused ioctl typedef
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 09 Oct 2022 00:28:32 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/src/commit/?id=1fcc50004cebbe3a578f6761936e5d8cd8ee24cd
commit 1fcc50004cebbe3a578f6761936e5d8cd8ee24cd
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-10-07 10:05:53 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-10-09 00:28:04 +0000
ipfilter: Removed unused ioctl typedef
Defunct operating systems no longer pollute the ipfilter sources. Remove
their typedefs.
MFC after: 1 week
---
sbin/ipf/common/ipf.h | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/sbin/ipf/common/ipf.h b/sbin/ipf/common/ipf.h
index 977b3f0fd105..db4ba91319ad 100644
--- a/sbin/ipf/common/ipf.h
+++ b/sbin/ipf/common/ipf.h
@@ -47,6 +47,7 @@
#include <errno.h>
#include <limits.h>
#include <netdb.h>
+#include <stdarg.h>
#include <stdlib.h>
#include <stddef.h>
#include <stdio.h>
@@ -173,13 +174,7 @@ typedef struct proxyrule {
} proxyrule_t;
-#if defined(__NetBSD__) || defined(__FreeBSD__) || \
- SOLARIS
-# include <stdarg.h>
typedef int (* ioctlfunc_t)(int, ioctlcmd_t, ...);
-#else
-typedef int (* ioctlfunc_t)(dev_t, ioctlcmd_t, void *);
-#endif
typedef int (* addfunc_t)(int, ioctlfunc_t, void *);
typedef int (* copyfunc_t)(void *, void *, size_t);