diff options
author | 2015-09-12 14:56:50 +0000 | |
---|---|---|
committer | 2015-09-12 14:56:50 +0000 | |
commit | 0e3c6306f9e8c62197134dcb9c6f7fdda47b72b8 (patch) | |
tree | 156ca6d3bca87e18d5b8368eb09c65267e4c649a /lib/libc/crypt/crypt.c | |
parent | Wrap <getopt.h> to make the functions weak and make access to the initialized (diff) | |
download | wireguard-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.c | 4 |
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); |