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>
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) {