libsudo_util: silence most -Wconversion warnings.

This commit is contained in:
Todd C. Miller
2023-07-07 15:07:04 -06:00
parent f7801f2160
commit 5768d374cc
29 changed files with 128 additions and 111 deletions

View File

@@ -94,7 +94,7 @@ sudo_str2sig(const char *signame, int *result)
/* Could be a signal number encoded as a string. */
if (isdigit((unsigned char)signame[0])) {
signo = sudo_strtonum(signame, 0, NSIG - 1, &errstr);
signo = (int)sudo_strtonum(signame, 0, NSIG - 1, &errstr);
if (errstr != NULL)
return -1;
*result = signo;