From 92c57599167493c3bef125d0aa3416a4f3abf082 Mon Sep 17 00:00:00 2001 From: bde Date: Wed, 29 Aug 2001 13:52:27 +0000 Subject: Fixed namespace pollution related to `warn' in libc (but not in other libraries or for other members of the err() family). This fixes world breakage in bc and rcs/* for NOSHARED worlds. --- lib/libc/gen/initgroups.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/libc/gen/initgroups.c') diff --git a/lib/libc/gen/initgroups.c b/lib/libc/gen/initgroups.c index b1ddd86..9918955 100644 --- a/lib/libc/gen/initgroups.c +++ b/lib/libc/gen/initgroups.c @@ -32,13 +32,20 @@ */ #if defined(LIBC_SCCS) && !defined(lint) +#if 0 static char sccsid[] = "@(#)initgroups.c 8.1 (Berkeley) 6/4/93"; +#else +static const char rcsid[] = + "$FreeBSD$"; +#endif #endif /* LIBC_SCCS and not lint */ #include #include +#include "namespace.h" #include +#include "un-namespace.h" #include int @@ -53,7 +60,7 @@ initgroups(uname, agroup) warnx("%s is in too many groups, using first %d", uname, ngroups); if (setgroups(ngroups, groups) < 0) { - warn("setgroups"); + _warn("setgroups"); return (-1); } return (0); -- cgit v1.1