linux(4): Drop excess assert that Linux IFNAMSIZ is equal to FreeBSD
While here use _Static_assert() instead of the older CTASSERT().
This commit is contained in:
parent
c3824ae9f6
commit
d3e0096774
sys/compat/linux
@ -56,7 +56,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <compat/linux/linux_mib.h>
|
||||
#include <compat/linux/linux_util.h>
|
||||
|
||||
CTASSERT(LINUX_IFNAMSIZ == IFNAMSIZ);
|
||||
_Static_assert(LINUX_IFNAMSIZ == IFNAMSIZ, "Linux IFNAMSIZ");
|
||||
|
||||
static bool use_real_ifnames = false;
|
||||
SYSCTL_BOOL(_compat_linux, OID_AUTO, use_real_ifnames, CTLFLAG_RWTUN,
|
||||
|
@ -86,8 +86,6 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <cam/scsi/scsi_sg.h>
|
||||
|
||||
CTASSERT(LINUX_IFNAMSIZ == IFNAMSIZ);
|
||||
|
||||
#define DEFINE_LINUX_IOCTL_SET(shortname, SHORTNAME) \
|
||||
static linux_ioctl_function_t linux_ioctl_ ## shortname; \
|
||||
static struct linux_ioctl_handler shortname ## _handler = { \
|
||||
|
Loading…
x
Reference in New Issue
Block a user