diff --git a/login-utils/newgrp.c b/login-utils/newgrp.c index e674a4feb..141b41bf4 100644 --- a/login-utils/newgrp.c +++ b/login-utils/newgrp.c @@ -180,7 +180,7 @@ int main(int argc, char *argv[]) struct passwd *pw_entry; struct group *gr_entry; char *shell; - char ch; + int ch; static const struct option longopts[] = { {"version", no_argument, NULL, 'V'}, {"help", no_argument, NULL, 'h'}, diff --git a/term-utils/scriptreplay.c b/term-utils/scriptreplay.c index 172466339..b4549ef16 100644 --- a/term-utils/scriptreplay.c +++ b/term-utils/scriptreplay.c @@ -138,7 +138,7 @@ main(int argc, char *argv[]) double divi = 1, maxdelay = 0; int c, diviopt = FALSE, maxdelayopt = FALSE, idx; unsigned long line; - char ch; + int ch; static const struct option longopts[] = { { "timing", required_argument, 0, 't' },