diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-03-18 01:44:53 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-18 01:44:53 -0400 |
commit | e6f1cebf71c4e7aae7dfa43414ce2631291def9f (patch) | |
tree | a3abf6bb3e63f2ecea1a4e05bf8d288d920acb17 /arch | |
parent | fc4d30a6fc88121081916faef930d8c3e4ed6036 (diff) |
[NET] endianness noise: INADDR_ANY
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sparc/kernel/sys_sunos.c | 2 | ||||
-rw-r--r-- | arch/sparc64/kernel/sys_sunos32.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/sparc/kernel/sys_sunos.c b/arch/sparc/kernel/sys_sunos.c index 28c187c5d9fd..f5b608bbe8af 100644 --- a/arch/sparc/kernel/sys_sunos.c +++ b/arch/sparc/kernel/sys_sunos.c | |||
@@ -659,7 +659,7 @@ sunos_nfs_get_server_fd (int fd, struct sockaddr_in *addr) | |||
659 | 659 | ||
660 | socket = SOCKET_I(inode); | 660 | socket = SOCKET_I(inode); |
661 | local.sin_family = AF_INET; | 661 | local.sin_family = AF_INET; |
662 | local.sin_addr.s_addr = INADDR_ANY; | 662 | local.sin_addr.s_addr = htonl(INADDR_ANY); |
663 | 663 | ||
664 | /* IPPORT_RESERVED = 1024, can't find the definition in the kernel */ | 664 | /* IPPORT_RESERVED = 1024, can't find the definition in the kernel */ |
665 | try_port = 1024; | 665 | try_port = 1024; |
diff --git a/arch/sparc64/kernel/sys_sunos32.c b/arch/sparc64/kernel/sys_sunos32.c index cfc22d3fe54c..e91194fe39d7 100644 --- a/arch/sparc64/kernel/sys_sunos32.c +++ b/arch/sparc64/kernel/sys_sunos32.c | |||
@@ -618,7 +618,7 @@ sunos_nfs_get_server_fd (int fd, struct sockaddr_in *addr) | |||
618 | 618 | ||
619 | socket = SOCKET_I(inode); | 619 | socket = SOCKET_I(inode); |
620 | local.sin_family = AF_INET; | 620 | local.sin_family = AF_INET; |
621 | local.sin_addr.s_addr = INADDR_ANY; | 621 | local.sin_addr.s_addr = htonl(INADDR_ANY); |
622 | 622 | ||
623 | /* IPPORT_RESERVED = 1024, can't find the definition in the kernel */ | 623 | /* IPPORT_RESERVED = 1024, can't find the definition in the kernel */ |
624 | try_port = 1024; | 624 | try_port = 1024; |