]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
nfsumount: Squelch compiler warning
authorChuck Lever <chuck.lever@oracle.com>
Mon, 19 Sep 2011 18:10:08 +0000 (14:10 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 20 Sep 2011 11:33:03 +0000 (07:33 -0400)
nfsumount.c: In function nfs_umount_is_vers4:
nfsumount.c:164: warning: conversion to int from size_t may alter its value
nfsumount.c:173: warning: conversion to ?size_t? from int may change the sign of the result

Introduced by commit 3564ebbf.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/nfsumount.c

index b846564a331e41da2c178f2cf280b84eded197ab..3538d88036210ee4f00f6ae67b71f3af226c76a8 100644 (file)
@@ -161,7 +161,8 @@ static int nfs_umount_is_vers4(const struct mntentchn *mc)
                goto not_found;
 
        do {
-               int nlen = strlen(pmc->m.mnt_fsname);
+               size_t nlen = strlen(pmc->m.mnt_fsname);
+
                /*
                 * It's possible the mount location string in /proc/mounts
                 * ends with a '/'. In this case, if the entry came from