svn commit: trunk/uClibc/libc/inet
psm at uclibc.org
psm at uclibc.org
Sat Jan 14 02:57:50 UTC 2006
Author: psm
Date: 2006-01-13 18:57:49 -0800 (Fri, 13 Jan 2006)
New Revision: 13288
Log:
Correct 2 issues if ipv6 is enabled found by SpanKY, thx
Modified:
trunk/uClibc/libc/inet/ntop.c
Changeset:
Modified: trunk/uClibc/libc/inet/ntop.c
===================================================================
--- trunk/uClibc/libc/inet/ntop.c 2006-01-14 02:23:51 UTC (rev 13287)
+++ trunk/uClibc/libc/inet/ntop.c 2006-01-14 02:57:49 UTC (rev 13288)
@@ -35,6 +35,8 @@
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 @@
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 @@
* 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 @@
curtok = src;
saw_xdigit = 0;
val = 0;
- while ((ch = __tolower (*src++)) != '\0') {
+ while ((ch = tolower (*src++)) != '\0') {
const char *pch;
pch = strchr(xdigits, ch);
More information about the uClibc-cvs
mailing list