summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2010-07-20 18:43:46 -0400
committerSteve Dickson <steved@redhat.com>2010-08-09 09:57:02 -0400
commit6b8d7c05fe738a4c7295754b4be552c703024f58 (patch)
tree0d7c36167d1b0a6f68fbe3d9388e8fe4e538dec4
parentcf2fd4869fdb77741bca9e3f713af49b889661b3 (diff)
downloadnfs-utils-6b8d7c05fe738a4c7295754b4be552c703024f58.tar.gz
nfs-utils-6b8d7c05fe738a4c7295754b4be552c703024f58.tar.xz
nfs-utils-6b8d7c05fe738a4c7295754b4be552c703024f58.zip
Removed warnings from nfs4mount.c
nfs4mount.c: In function 'fill_ipv4_sockaddr': nfs4mount.c:149: warning: comparison between signed and unsigned integer expressions Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/mount/nfs4mount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mount/nfs4mount.c b/utils/mount/nfs4mount.c
index 4a2fab7..028e7cd 100644
--- a/utils/mount/nfs4mount.c
+++ b/utils/mount/nfs4mount.c
@@ -146,7 +146,7 @@ static int fill_ipv4_sockaddr(const char *hostname, struct sockaddr_in *addr)
progname, hostname);
return -1;
}
- if (hp->h_length > sizeof(struct in_addr)) {
+ if (hp->h_length > (int)sizeof(struct in_addr)) {
nfs_error(_("%s: got bad hp->h_length"), progname);
hp->h_length = sizeof(struct in_addr);
}