aboutsummaryrefslogtreecommitdiff
path: root/toys/other/chvt.c
diff options
context:
space:
mode:
authorIsaac Dunham <ibid.ag@gmail.com>2014-01-28 10:10:25 -0600
committerIsaac Dunham <ibid.ag@gmail.com>2014-01-28 10:10:25 -0600
commit714a0db2ade17f61f09816f0f7067f14e049e645 (patch)
tree474a960228ff3fda92e657c35cbe30b0a0a59e1d /toys/other/chvt.c
parentd7e41f1b6b290dd01512110c62a49bb9af426d5a (diff)
downloadtoybox-714a0db2ade17f61f09816f0f7067f14e049e645.tar.gz
Two changes to shut up GCC:
* __GLIBC__ was checked unconditionally; this made for a very messy build on musl. * int fd in chvt is always initialized; GCC 3.4 does not recognize this.
Diffstat (limited to 'toys/other/chvt.c')
-rw-r--r--toys/other/chvt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/other/chvt.c b/toys/other/chvt.c
index 5016b9b5..65442657 100644
--- a/toys/other/chvt.c
+++ b/toys/other/chvt.c
@@ -21,7 +21,7 @@ config CHVT
void chvt_main(void)
{
- int vtnum, fd;
+ int vtnum, fd = fd;
char *consoles[]={"/dev/console", "/dev/vc/0", "/dev/tty", NULL}, **cc;
vtnum=atoi(*toys.optargs);