summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/initgroups.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-12 14:56:50 +0000
committerguenther <guenther@openbsd.org>2015-09-12 14:56:50 +0000
commit0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8 (patch)
tree156ca6d3bca87e18d5b8368eb09c65267e4c649a /lib/libc/gen/initgroups.c
parentWrap <getopt.h> to make the functions weak and make access to the initialized (diff)
downloadwireguard-openbsd-0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8.tar.xz
wireguard-openbsd-0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8.zip
Wrap <unistd.h> so that internal calls go direct and they're all weak symbols
Delete unused 'fd' argument from internal function oldttyname()
Diffstat (limited to 'lib/libc/gen/initgroups.c')
-rw-r--r--lib/libc/gen/initgroups.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/initgroups.c b/lib/libc/gen/initgroups.c
index 9d7727a9c2b..b8c32ad653e 100644
--- a/lib/libc/gen/initgroups.c
+++ b/lib/libc/gen/initgroups.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: initgroups.c,v 1.9 2015/01/16 16:48:51 deraadt Exp $ */
+/* $OpenBSD: initgroups.c,v 1.10 2015/09/12 14:56:50 guenther Exp $ */
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -45,3 +45,4 @@ initgroups(const char *uname, gid_t agroup)
return (-1);
return (0);
}
+DEF_WEAK(initgroups);