diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2009-07-14 16:57:07 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2009-07-14 16:57:07 -0400 |
commit | 6e3fa0e103a494a37cf3a4f9199516923928ab31 (patch) | |
tree | b5c2301d7e9c8499c21b85afeed5c83659305659 /utils | |
parent | c27bf85f0bd41015352468f35dfbf0d431d1e4c5 (diff) | |
download | nfs-utils-6e3fa0e103a494a37cf3a4f9199516923928ab31.tar.gz nfs-utils-6e3fa0e103a494a37cf3a4f9199516923928ab31.tar.xz nfs-utils-6e3fa0e103a494a37cf3a4f9199516923928ab31.zip |
umount.nfs: Use correct data type in nfsumount()
Address compiler warning:
nfsumount.c: In function nfsumount:
nfsumount.c:347: warning: comparison between signed and unsigned
The result type of pointer arithmetic and the return type of strlen(3)
are both size_t.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils')
-rw-r--r-- | utils/mount/nfsumount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mount/nfsumount.c b/utils/mount/nfsumount.c index ba27900..f81db14 100644 --- a/utils/mount/nfsumount.c +++ b/utils/mount/nfsumount.c @@ -336,7 +336,7 @@ int nfsumount(int argc, char *argv[]) char *opt = hasmntopt(&mc->m, "user"); struct passwd *pw; char *comma; - int len; + size_t len; if (!opt) goto only_root; if (opt[4] != '=') |