From 044ba81b85611250e8c8cdc0e15618f6618fbc2e Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Thu, 24 Mar 2005 19:26:50 +0000 Subject: [PATCH] Use the CTASSERT() macro instead of rolling my own, non-portable one using #error. Suggested by: jhb --- sys/compat/linux/linux_ioctl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/compat/linux/linux_ioctl.c b/sys/compat/linux/linux_ioctl.c index 89ba36aee775..c4a553f246f5 100644 --- a/sys/compat/linux/linux_ioctl.c +++ b/sys/compat/linux/linux_ioctl.c @@ -70,9 +70,7 @@ __FBSDID("$FreeBSD$"); #include #include -#if (LINUX_IFNAMSIZ != IFNAMSIZ) -#error "LINUX_IFNAMSIZ != IFNAMSIZ" -#endif +CTASSERT(LINUX_IFNAMSIZ == IFNAMSIZ); static linux_ioctl_function_t linux_ioctl_cdrom; static linux_ioctl_function_t linux_ioctl_vfat;