]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Removed warnings from nfs4mount.c
authorSteve Dickson <steved@redhat.com>
Tue, 20 Jul 2010 22:43:46 +0000 (18:43 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 9 Aug 2010 13:57:02 +0000 (09:57 -0400)
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>
utils/mount/nfs4mount.c

index 4a2fab7dfabf326f268b31952275583a23004d05..028e7cd5447e16a8b20e50efa67ec703cca3f3d6 100644 (file)
@@ -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);
        }