sudoers plugin: silence most -Wconversion warnings.

This commit is contained in:
Todd C. Miller
2023-07-07 15:07:04 -06:00
parent 4891f37a45
commit a38b714667
58 changed files with 352 additions and 322 deletions

View File

@@ -50,7 +50,7 @@ parse_timeout(const char *timestr)
do {
char *ep;
char ch;
int ch;
long l;
/* Parse number, must be present and positive. */
@@ -99,7 +99,7 @@ parse_timeout(const char *timestr)
}
cp = ep;
timeout += l;
timeout += (int)l;
} while (*cp != '\0');
debug_return_int(timeout);