summaryrefslogtreecommitdiff
path: root/libc/inet/if_index.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/if_index.c')
-rw-r--r--libc/inet/if_index.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/inet/if_index.c b/libc/inet/if_index.c
index fd0b901a1..2a687bb89 100644
--- a/libc/inet/if_index.c
+++ b/libc/inet/if_index.c
@@ -44,6 +44,7 @@ libc_hidden_proto(close)
extern int __opensock(void) attribute_hidden;
+libc_hidden_proto(if_nametoindex)
unsigned int
if_nametoindex(const char* ifname)
{
@@ -71,9 +72,9 @@ if_nametoindex(const char* ifname)
return ifr.ifr_ifindex;
#endif
}
-libc_hidden_proto(if_nametoindex)
libc_hidden_def(if_nametoindex)
+libc_hidden_proto(if_freenameindex)
void
if_freenameindex (struct if_nameindex *ifn)
{
@@ -85,9 +86,9 @@ if_freenameindex (struct if_nameindex *ifn)
}
free (ifn);
}
-libc_hidden_proto(if_freenameindex)
libc_hidden_def(if_freenameindex)
+libc_hidden_proto(if_nameindex)
#if !__ASSUME_NETLINK_SUPPORT
struct if_nameindex *
if_nameindex (void)
@@ -283,7 +284,6 @@ if_nameindex (void)
return idx;
}
#endif
-libc_hidden_proto(if_nameindex)
libc_hidden_def(if_nameindex)
#if 0