]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
scriptreplay/newgrp: use signed int to store return of getopt_long
authorFilipe Brandenburger <filbranden@google.com>
Wed, 6 Jan 2016 19:00:49 +0000 (11:00 -0800)
committerKarel Zak <kzak@redhat.com>
Thu, 7 Jan 2016 11:47:41 +0000 (12:47 +0100)
Signed-off-by: Filipe Brandenburger <filbranden@google.com>
login-utils/newgrp.c
term-utils/scriptreplay.c

index e674a4feb4f25b472919800004e3708febcf8619..141b41bf401567a824ce4540a643490c9bb702ea 100644 (file)
@@ -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'},
index 17246633965cd78fcea82d2bcdca428d17249725..b4549ef16edd6633ef565716240cdd5f78547974 100644 (file)
@@ -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' },