From: Chuck Lever Date: Mon, 19 Sep 2011 18:10:08 +0000 (-0400) Subject: nfsumount: Squelch compiler warning X-Git-Tag: nfs-utils-1-2-5-rc3~9 X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=commitdiff_plain;h=2cbf5fd54ec622bbb420fe5f0584b5f5edf7dc72 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 Signed-off-by: Steve Dickson --- 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