summaryrefslogtreecommitdiffstats
path: root/lib/libc/crypt/crypt.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/crypt/crypt.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/crypt/crypt.c')
-rw-r--r--lib/libc/crypt/crypt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/crypt/crypt.c b/lib/libc/crypt/crypt.c
index 95e69bbe998..40d5503544f 100644
--- a/lib/libc/crypt/crypt.c
+++ b/lib/libc/crypt/crypt.c
@@ -1,7 +1,8 @@
-/* $OpenBSD: crypt.c,v 1.30 2015/07/18 01:18:50 jeremy Exp $ */
+/* $OpenBSD: crypt.c,v 1.31 2015/09/12 14:56:50 guenther Exp $ */
#include <errno.h>
#include <pwd.h>
+#include <unistd.h>
char *
crypt(const char *key, const char *setting)
@@ -18,3 +19,4 @@ crypt(const char *key, const char *setting)
errno = EINVAL;
return (NULL);
}
+DEF_WEAK(crypt);