summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-06-29 00:18:33 +0000
committerMike Frysinger <vapier@gentoo.org>2005-06-29 00:18:33 +0000
commit8ef541433275e7ad2dd93dd2de07239541df62a9 (patch)
treef675db3b6ea2084af8d921ced89a1a1d66fe0aaa
parentbff338fd9af42403f1146d91361357c399750c21 (diff)
ifdef out check which always fails
-rw-r--r--libc/inet/ntop.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/inet/ntop.c b/libc/inet/ntop.c
index bcdc57df8..35c302950 100644
--- a/libc/inet/ntop.c
+++ b/libc/inet/ntop.c
@@ -58,10 +58,12 @@ inet_ntop4(const u_char *src, char *dst, size_t size)
i = 0;
for (octet = 0; octet <= 3; octet++) {
+#if 0 /* since src is unsigned char, it will never be > 255 ... */
if (src[octet] > 255) {
__set_errno (ENOSPC);
return (NULL);
}
+#endif
tmp[i++] = '0' + src[octet] / 100;
if (tmp[i - 1] == '0') {
tmp[i - 1] = '0' + (src[octet] / 10 % 10);