[PATCH] inet_common.c: use portable inet_pton instead of _aton
Rich Felker
dalias at aerifal.cx
Fri May 19 02:50:09 UTC 2006
compile error on my system. this could be handled with a macro but i
don't think it's worth the trouble..
rich
-------------- next part --------------
Index: libbb/inet_common.c
===================================================================
--- libbb/inet_common.c (revision 15108)
+++ libbb/inet_common.c (working copy)
@@ -38,7 +38,7 @@
return (1);
}
/* Look to see if it's a dotted quad. */
- if (inet_aton(name, &s_in->sin_addr)) {
+ if (inet_pton(AF_INET, name, &s_in->sin_addr) > 0) {
return 0;
}
/* If we expect this to be a hostname, try hostname database first */
More information about the busybox
mailing list