diff options
author | guenther <> | 2015-09-12 14:56:50 +0000 |
---|---|---|
committer | guenther <> | 2015-09-12 14:56:50 +0000 |
commit | bb3dc274c59720dc1e231a536edf176cf9687b2e (patch) | |
tree | 6a69eda4ad5fbf1a3d11bcb1b69836678c8514d4 /src/lib/libc/crypt/crypt.c | |
parent | 816e64a6d2b32b5c4a058d38acc0834a669372c8 (diff) | |
download | openbsd-bb3dc274c59720dc1e231a536edf176cf9687b2e.tar.gz openbsd-bb3dc274c59720dc1e231a536edf176cf9687b2e.tar.bz2 openbsd-bb3dc274c59720dc1e231a536edf176cf9687b2e.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 'src/lib/libc/crypt/crypt.c')
-rw-r--r-- | src/lib/libc/crypt/crypt.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/crypt/crypt.c b/src/lib/libc/crypt/crypt.c index 95e69bbe99..40d5503544 100644 --- a/src/lib/libc/crypt/crypt.c +++ b/src/lib/libc/crypt/crypt.c | |||
@@ -1,7 +1,8 @@ | |||
1 | /* $OpenBSD: crypt.c,v 1.30 2015/07/18 01:18:50 jeremy Exp $ */ | 1 | /* $OpenBSD: crypt.c,v 1.31 2015/09/12 14:56:50 guenther Exp $ */ |
2 | 2 | ||
3 | #include <errno.h> | 3 | #include <errno.h> |
4 | #include <pwd.h> | 4 | #include <pwd.h> |
5 | #include <unistd.h> | ||
5 | 6 | ||
6 | char * | 7 | char * |
7 | crypt(const char *key, const char *setting) | 8 | crypt(const char *key, const char *setting) |
@@ -18,3 +19,4 @@ crypt(const char *key, const char *setting) | |||
18 | errno = EINVAL; | 19 | errno = EINVAL; |
19 | return (NULL); | 20 | return (NULL); |
20 | } | 21 | } |
22 | DEF_WEAK(crypt); | ||