summaryrefslogtreecommitdiff
path: root/libc/inet/getnetbynm.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inet/getnetbynm.c')
-rw-r--r--libc/inet/getnetbynm.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/libc/inet/getnetbynm.c b/libc/inet/getnetbynm.c
index ef3d06137..97d5cb85f 100644
--- a/libc/inet/getnetbynm.c
+++ b/libc/inet/getnetbynm.c
@@ -15,15 +15,16 @@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
-#define setnetent __setnetent
-#define getnetent __getnetent
-#define endnetent __endnetent
-
#define __FORCE_GLIBC
#include <features.h>
#include <netdb.h>
#include <string.h>
+libc_hidden_proto(strcmp)
+libc_hidden_proto(setnetent)
+libc_hidden_proto(getnetent)
+libc_hidden_proto(endnetent)
+
extern int _net_stayopen attribute_hidden;
struct netent *
@@ -34,10 +35,10 @@ getnetbyname(const char *name)
setnetent(_net_stayopen);
while ((p = getnetent())) {
- if (__strcmp(p->n_name, name) == 0)
+ if (strcmp(p->n_name, name) == 0)
break;
for (cp = p->n_aliases; *cp != 0; cp++)
- if (__strcmp(*cp, name) == 0)
+ if (strcmp(*cp, name) == 0)
goto found;
}
found: