From a7d40a88c91d105dcfe2f235bc84a522bfea3de2 Mon Sep 17 00:00:00 2001 From: pfg Date: Tue, 19 Apr 2016 23:48:27 +0000 Subject: kernel: use our nitems() macro when it is available through param.h. No functional change, only trivial cases are done in this sweep, Discussed in: freebsd-current --- sys/compat/linux/linux_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/compat/linux/linux_socket.c') diff --git a/sys/compat/linux/linux_socket.c b/sys/compat/linux/linux_socket.c index 741a45b..105aec5 100644 --- a/sys/compat/linux/linux_socket.c +++ b/sys/compat/linux/linux_socket.c @@ -1703,7 +1703,7 @@ static const unsigned char lxs_args[] = { LINUX_AL(4) /* sendmmsg */ }; -#define LINUX_AL_SIZE sizeof(lxs_args) / sizeof(lxs_args[0]) - 1 +#define LINUX_AL_SIZE (nitems(lxs_args) - 1) int linux_socketcall(struct thread *td, struct linux_socketcall_args *args) -- cgit v1.1