From 714a0db2ade17f61f09816f0f7067f14e049e645 Mon Sep 17 00:00:00 2001 From: Isaac Dunham Date: Tue, 28 Jan 2014 10:10:25 -0600 Subject: 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. --- toys/other/chvt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other/chvt.c') 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); -- cgit v1.2.3