summaryrefslogtreecommitdiffstats
path: root/term-utils
diff options
context:
space:
mode:
authorSami Kerola2012-07-25 21:15:30 +0200
committerKarel Zak2012-07-26 13:44:58 +0200
commit4d9e37bfedde94627dec0274851c344560551c3f (patch)
tree9e5300662cadadb84e2e8796b795efe7abd06a65 /term-utils
parentlscpu: fix shadow declaration (diff)
downloadkernel-qcow2-util-linux-4d9e37bfedde94627dec0274851c344560551c3f.tar.gz
kernel-qcow2-util-linux-4d9e37bfedde94627dec0274851c344560551c3f.tar.xz
kernel-qcow2-util-linux-4d9e37bfedde94627dec0274851c344560551c3f.zip
setterm: fix shadow declaration
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>
Diffstat (limited to 'term-utils')
-rw-r--r--term-utils/setterm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/term-utils/setterm.c b/term-utils/setterm.c
index 3083ac826..a2cf93b1e 100644
--- a/term-utils/setterm.c
+++ b/term-utils/setterm.c
@@ -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