summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2011-09-19 14:10:08 -0400
committerSteve Dickson <steved@redhat.com>2011-09-20 07:33:03 -0400
commit2cbf5fd54ec622bbb420fe5f0584b5f5edf7dc72 (patch)
treea233d1d9be8621cabf782e080e7557312ce70695
parent34ee5730f35ec6a5c3c6a29d9ecafe40df95b498 (diff)
downloadnfs-utils-2cbf5fd54ec622bbb420fe5f0584b5f5edf7dc72.tar.gz
nfs-utils-2cbf5fd54ec622bbb420fe5f0584b5f5edf7dc72.tar.xz
nfs-utils-2cbf5fd54ec622bbb420fe5f0584b5f5edf7dc72.zip
nfsumount: Squelch compiler warning
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>
-rw-r--r--utils/mount/nfsumount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c
index b846564..3538d88 100644
--- a/utils/mount/nfsumount.c
+++ b/utils/mount/nfsumount.c
@@ -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