summaryrefslogtreecommitdiff
path: root/libc/inet/getnetbynm.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 00:58:03 +0000
commitaf0172162f7c653cad6a11ed1c1a5459bc154465 (patch)
tree70031dad1e7286d58762da7b9e3d3f93d043c278 /libc/inet/getnetbynm.c
parentc8609543a9a8bf6559c2931dbbef6b3c41b3fbf2 (diff)
hidden_def/hidden_proto: convert all users (I hope) termios split, add some missing headers, other jump relocs removed
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: