diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2008-03-17 22:44:53 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-03-17 22:44:53 -0700 |
commit | e6f1cebf71c4e7aae7dfa43414ce2631291def9f (patch) | |
tree | a3abf6bb3e63f2ecea1a4e05bf8d288d920acb17 /fs/nfs/super.c | |
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 'fs/nfs/super.c')
-rw-r--r-- | fs/nfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 1fb381843650..bdcf6d3ef62f 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c @@ -632,7 +632,7 @@ static int nfs_verify_server_address(struct sockaddr *addr) switch (addr->sa_family) { case AF_INET: { struct sockaddr_in *sa = (struct sockaddr_in *)addr; - return sa->sin_addr.s_addr != INADDR_ANY; + return sa->sin_addr.s_addr != htonl(INADDR_ANY); } case AF_INET6: { struct in6_addr *sa = &((struct sockaddr_in6 *)addr)->sin6_addr; |