]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
setterm: fix shadow declaration
authorSami Kerola <kerolasa@iki.fi>
Wed, 25 Jul 2012 19:15:30 +0000 (21:15 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 26 Jul 2012 11:44:58 +0000 (13:44 +0200)
term-utils/setterm.c:221:55: warning: declaration of 'opt_term' shadows a global declaration [-Wshadow]
term-utils/setterm.c:181:5: warning: shadowed declaration is here [-Wshadow]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/setterm.c

index 3083ac8268ecfef1d0f504d30bdd39e1326d57d5..a2cf93b1e6c2ac5728c28714e2031258c3d7d431 100644 (file)
@@ -218,11 +218,11 @@ static void screendump(int vcnum, FILE *F);
  */
 
 static void
-parse_term(int argc, char **argv, int *option, char **opt_term, int *bad_arg) {
+parse_term(int argc, char **argv, int *option, char **ttyname, int *bad_arg) {
        /* argc: Number of arguments for this option. */
        /* argv: Arguments for this option. */
        /* option: Term flag to set. */
-       /* opt_term: Terminal name to set. */
+       /* ttyname: Terminal name to set. */
        /* bad_arg: Set to true if an error is detected. */
 
 /* Parse a -term specification. */
@@ -231,7 +231,7 @@ parse_term(int argc, char **argv, int *option, char **opt_term, int *bad_arg) {
                *bad_arg = TRUE;
        *option = TRUE;
        if (argc == 1)
-               *opt_term = argv[0];
+               *ttyname = argv[0];
 }
 
 static void