From: Filipe Brandenburger Date: Wed, 6 Jan 2016 19:00:49 +0000 (-0800) Subject: scriptreplay/newgrp: use signed int to store return of getopt_long X-Git-Tag: v2.28-rc1~207 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94757eceb1da6fe668861dce2e793e83a877967d;p=thirdparty%2Futil-linux.git scriptreplay/newgrp: use signed int to store return of getopt_long Signed-off-by: Filipe Brandenburger --- diff --git a/login-utils/newgrp.c b/login-utils/newgrp.c index e674a4feb4..141b41bf40 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 1724663396..b4549ef16e 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' },