summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-10-13 11:59:30 -0400
committerSteve Dickson <steved@redhat.com>2010-10-14 10:26:59 -0400
commit57385cf87790c0cbdfddfccdde66bd2c8da45923 (patch)
tree92b5d7cea5d627b37bd5994b6809b821549f5ed2
parent1ee10ef034cbca86da4df271ac4097a948e7ab59 (diff)
downloadnfs-utils-57385cf87790c0cbdfddfccdde66bd2c8da45923.tar.gz
nfs-utils-57385cf87790c0cbdfddfccdde66bd2c8da45923.tar.xz
nfs-utils-57385cf87790c0cbdfddfccdde66bd2c8da45923.zip
mount.nfs: Eliminate compiler warning in utils/mount/parse_opt.c
parse_opt.c: In function po_rightmost: parse_opt.c:517: warning: conversion to int from unsigned int may change the sign of the result "i" contains the function's result value, so it should be defined as the same type as the function's return type. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/mount/parse_opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mount/parse_opt.c b/utils/mount/parse_opt.c
index f0918f7..ab869d9 100644
--- a/utils/mount/parse_opt.c
+++ b/utils/mount/parse_opt.c
@@ -508,7 +508,7 @@ po_found_t po_get_numeric(struct mount_options *options, char *keyword, long *va
int po_rightmost(struct mount_options *options, const char *keys[])
{
struct mount_option *option;
- unsigned int i;
+ int i;
if (options) {
for (option = options->tail; option; option = option->prev) {