summaryrefslogtreecommitdiff
path: root/sys/compat/linux/common/linux_misc.c
diff options
context:
space:
mode:
authordsl <dsl@NetBSD.org>2007-07-04 21:59:16 +0000
committerdsl <dsl@NetBSD.org>2007-07-04 21:59:16 +0000
commit513b927545a44807b231301bba5e7bdf2900aee8 (patch)
treef537904b7510f05b40570cdddf24c239f50aba22 /sys/compat/linux/common/linux_misc.c
parent0bbb4e920d6c9fbda51f08e89dda22a1d8deabc4 (diff)
It seems that min(16,16) isn't a compile time constant.
So don't bother limiting the local arrays to NGROUPS, just use 16.
Diffstat (limited to 'sys/compat/linux/common/linux_misc.c')
-rw-r--r--sys/compat/linux/common/linux_misc.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c
index d39085b86d9..56da0b4fb2c 100644
--- a/sys/compat/linux/common/linux_misc.c
+++ b/sys/compat/linux/common/linux_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.c,v 1.181 2007/06/30 13:34:19 dsl Exp $ */
+/* $NetBSD: linux_misc.c,v 1.182 2007/07/04 21:59:16 dsl Exp $ */
/*-
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.181 2007/06/30 13:34:19 dsl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.182 2007/07/04 21:59:16 dsl Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ptrace.h"
@@ -1154,7 +1154,12 @@ linux_sys_getgroups16(l, v, retval)
return 0;
}
-#define COMPAT_NGROUPS16 min(16, NGROUPS)
+/*
+ * It is very unlikly that any problem using 16bit groups is written
+ * to allow for more than 16 of them, so don't bother trying to
+ * support that.
+ */
+#define COMPAT_NGROUPS16 16
int
linux_sys_setgroups16(l, v, retval)