From: Steve Dickson Date: Tue, 20 Jul 2010 22:43:46 +0000 (-0400) Subject: Removed warnings from nfs4mount.c X-Git-Tag: nfs-utils-1-2-3-rc5~6 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=6b8d7c05fe738a4c7295754b4be552c703024f58;p=nfs-utils.git 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 --- 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); }