summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-01-14 02:57:49 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-01-14 02:57:49 +0000
commitff63061c6042e4e6eee2fc694962f31b417cca6f (patch)
treea73cb9dee0cfdd6844efb8e3ef5c30a40bf895e2 /libc
parent61aa0b16faabc7889c554a728d202f8b5d5f2809 (diff)
Correct 2 issues if ipv6 is enabled found by SpanKY, thx
Diffstat (limited to 'libc')
-rw-r--r--libc/inet/ntop.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/libc/inet/ntop.c b/libc/inet/ntop.c
index fd5feb10e..16b089f3f 100644
--- a/libc/inet/ntop.c
+++ b/libc/inet/ntop.c
@@ -35,6 +35,8 @@ libc_hidden_proto(memset)
libc_hidden_proto(strchr)
libc_hidden_proto(strcpy)
libc_hidden_proto(strlen)
+libc_hidden_proto(sprintf)
+libc_hidden_proto(tolower)
/*
* WARNING: Don't even consider trying to compile this on a system where
@@ -168,7 +170,7 @@ inet_ntop6(const u_char *src, char *dst, size_t size)
tp += strlen(tp);
break;
}
- tp += __sprintf(tp, "%x", words[i]);
+ tp += sprintf(tp, "%x", words[i]);
}
/* Was it a trailing run of 0x00's? */
if (best.base != -1 && (best.base + best.len) == 8)
@@ -254,7 +256,7 @@ inet_pton4(const char *src, u_char *dst)
* So undef it here so we get the function version of tolower
* instead.
*/
-#undef __tolower
+#undef tolower
static int
inet_pton6(const char *src, u_char *dst)
@@ -276,7 +278,7 @@ inet_pton6(const char *src, u_char *dst)
curtok = src;
saw_xdigit = 0;
val = 0;
- while ((ch = __tolower (*src++)) != '\0') {
+ while ((ch = tolower (*src++)) != '\0') {
const char *pch;
pch = strchr(xdigits, ch);