From 95a040fac831a5b8c2297328ec0b3ada4024ee7a Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Sat, 27 May 2006 09:36:43 +0000 Subject: - use the defines CURRENT_TTY and VC_1; also shrink xargs a tiny bit: add/remove: 0/0 grow/shrink: 2/6 up/down: 5/-37 (-32) function old new delta static.add_interface 271 274 +3 static.glob3 36 38 +2 static.renice_main 409 408 -1 static.readcmd 1083 1081 -2 static.changepath 176 174 -2 static.parse_opts 56 51 -5 static.rx_main 1095 1088 -7 static.xargs_main 759 739 -20 ---------------------------------------------------------------- Result :-) -32 --- console-tools/setlogcons.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'console-tools/setlogcons.c') diff --git a/console-tools/setlogcons.c b/console-tools/setlogcons.c index 1f0ac524e..32153bd2c 100644 --- a/console-tools/setlogcons.c +++ b/console-tools/setlogcons.c @@ -27,7 +27,7 @@ extern int setlogcons_main(int argc, char **argv) if (argc == 2) arg.subarg = atoi(argv[1]); - if (ioctl(bb_xopen("/dev/tty1", O_RDONLY), TIOCLINUX, &arg)) + if (ioctl(bb_xopen(VC_1, O_RDONLY), TIOCLINUX, &arg)) bb_perror_msg_and_die("TIOCLINUX");; return 0; -- cgit v1.2.3