[NET] endianness noise: INADDR_ANY
[deliverable/linux.git] / arch / sparc64 / kernel / sys_sunos32.c
index 170d6ca8de6f0e4d36b26c81ffdd0592059acfe2..e91194fe39d7fb3c9a2eea05cba13f21b8dae684 100644 (file)
@@ -57,7 +57,6 @@
 #include <linux/personality.h>
 
 /* For SOCKET_I */
-#include <linux/socket.h>
 #include <net/sock.h>
 #include <net/compat.h>
 
@@ -619,7 +618,7 @@ sunos_nfs_get_server_fd (int fd, struct sockaddr_in *addr)
 
        socket = SOCKET_I(inode);
        local.sin_family = AF_INET;
-       local.sin_addr.s_addr = INADDR_ANY;
+       local.sin_addr.s_addr = htonl(INADDR_ANY);
 
        /* IPPORT_RESERVED = 1024, can't find the definition in the kernel */
        try_port = 1024;
This page took 0.02999 seconds and 5 git commands to generate.