]> err.no Git - linux-2.6/blobdiff - net/core/utils.c
Pull release into acpica branch
[linux-2.6] / net / core / utils.c
index 7b5970fc9e407f7886332cba4d95b8ee3cf2c011..ac1d1fcf8673f63158691ee0004952b803206f84 100644 (file)
@@ -162,7 +162,7 @@ EXPORT_SYMBOL(net_srandom);
  * is otherwise not dependent on the TCP/IP stack.
  */
 
-__u32 in_aton(const char *str)
+__be32 in_aton(const char *str)
 {
        unsigned long l;
        unsigned int val;
@@ -175,7 +175,7 @@ __u32 in_aton(const char *str)
                if (*str != '\0')
                {
                        val = 0;
-                       while (*str != '\0' && *str != '.')
+                       while (*str != '\0' && *str != '.' && *str != '\n')
                        {
                                val *= 10;
                                val += *str - '0';