diff options
author | guenther <> | 2015-09-14 07:38:38 +0000 |
---|---|---|
committer | guenther <> | 2015-09-14 07:38:38 +0000 |
commit | 4b86b5390157b27ef6f13cfffac669a4ca39ca45 (patch) | |
tree | 3e8e48085acccfec6ea84d7f7dfa4ec85ac6335f /src/lib/libc/net/getprotoname.c | |
parent | 631e2e1c0de0d507d6c3ef3349cce9c9003dac9b (diff) | |
download | openbsd-4b86b5390157b27ef6f13cfffac669a4ca39ca45.tar.gz openbsd-4b86b5390157b27ef6f13cfffac669a4ca39ca45.tar.bz2 openbsd-4b86b5390157b27ef6f13cfffac669a4ca39ca45.zip |
Finish wrapping <netdb.h> so that calls go direct and the symbols are all weak
Diffstat (limited to 'src/lib/libc/net/getprotoname.c')
-rw-r--r-- | src/lib/libc/net/getprotoname.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/libc/net/getprotoname.c b/src/lib/libc/net/getprotoname.c index 749b6b3f13..f6ed4c49b1 100644 --- a/src/lib/libc/net/getprotoname.c +++ b/src/lib/libc/net/getprotoname.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getprotoname.c,v 1.7 2005/08/06 20:30:03 espie Exp $ */ | 1 | /* $OpenBSD: getprotoname.c,v 1.8 2015/09/14 07:38:38 guenther Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 1983, 1993 | 3 | * Copyright (c) 1983, 1993 |
4 | * The Regents of the University of California. All rights reserved. | 4 | * The Regents of the University of California. All rights reserved. |
@@ -54,6 +54,7 @@ found: | |||
54 | } | 54 | } |
55 | return (error); | 55 | return (error); |
56 | } | 56 | } |
57 | DEF_WEAK(getprotobyname_r); | ||
57 | 58 | ||
58 | struct protoent * | 59 | struct protoent * |
59 | getprotobyname(const char *name) | 60 | getprotobyname(const char *name) |
@@ -65,3 +66,4 @@ getprotobyname(const char *name) | |||
65 | return (NULL); | 66 | return (NULL); |
66 | return (&proto); | 67 | return (&proto); |
67 | } | 68 | } |
69 | DEF_WEAK(getprotobyname); | ||