diff options
author | guenther <> | 2015-09-14 10:47:01 +0000 |
---|---|---|
committer | guenther <> | 2015-09-14 10:47:01 +0000 |
commit | 88c29e91bd71abb6920cd8e70ee2be3ca4e664a0 (patch) | |
tree | 5a5e13a6181e114fbe3f86475d4cf0424a8fce9c | |
parent | d2986c5b1bcdeaa2c77d34466be3b2d753d9e3d4 (diff) | |
download | openbsd-88c29e91bd71abb6920cd8e70ee2be3ca4e664a0.tar.gz openbsd-88c29e91bd71abb6920cd8e70ee2be3ca4e664a0.tar.bz2 openbsd-88c29e91bd71abb6920cd8e70ee2be3ca4e664a0.zip |
Wrap <net/if.h> and <net/if_dl.h> so internal calls go direct and all the
symbols are weak
-rw-r--r-- | src/lib/libc/net/if_indextoname.c | 3 | ||||
-rw-r--r-- | src/lib/libc/net/if_nametoindex.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/libc/net/if_indextoname.c b/src/lib/libc/net/if_indextoname.c index f99e52e387..f1c65966df 100644 --- a/src/lib/libc/net/if_indextoname.c +++ b/src/lib/libc/net/if_indextoname.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: if_indextoname.c,v 1.9 2002/03/07 22:40:23 millert Exp $ */ | 1 | /* $OpenBSD: if_indextoname.c,v 1.10 2015/09/14 10:47:01 guenther Exp $ */ |
2 | /* $KAME: if_indextoname.c,v 1.6 2000/11/07 22:33:25 jinmei Exp $ */ | 2 | /* $KAME: if_indextoname.c,v 1.6 2000/11/07 22:33:25 jinmei Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -84,3 +84,4 @@ if_indextoname(unsigned int ifindex, char *ifname) | |||
84 | errno = error; | 84 | errno = error; |
85 | return(ifname); | 85 | return(ifname); |
86 | } | 86 | } |
87 | DEF_WEAK(if_indextoname); | ||
diff --git a/src/lib/libc/net/if_nametoindex.c b/src/lib/libc/net/if_nametoindex.c index 8bd792b949..8b2cbf743f 100644 --- a/src/lib/libc/net/if_nametoindex.c +++ b/src/lib/libc/net/if_nametoindex.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: if_nametoindex.c,v 1.8 2002/03/07 22:40:23 millert Exp $ */ | 1 | /* $OpenBSD: if_nametoindex.c,v 1.9 2015/09/14 10:47:01 guenther Exp $ */ |
2 | /* $KAME: if_nametoindex.c,v 1.5 2000/11/24 08:04:40 itojun Exp $ */ | 2 | /* $KAME: if_nametoindex.c,v 1.5 2000/11/24 08:04:40 itojun Exp $ */ |
3 | 3 | ||
4 | /*- | 4 | /*- |
@@ -79,3 +79,4 @@ if_nametoindex(const char *ifname) | |||
79 | errno = ENXIO; | 79 | errno = ENXIO; |
80 | return(ni); | 80 | return(ni); |
81 | } | 81 | } |
82 | DEF_WEAK(if_nametoindex); | ||