aboutsummaryrefslogtreecommitdiff
path: root/miscutils/rx.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-27 09:36:43 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-05-27 09:36:43 +0000
commit95a040fac831a5b8c2297328ec0b3ada4024ee7a (patch)
tree20e06d7e76a02600a77fba6d92c24a645cf1944c /miscutils/rx.c
parent8bb50782a5f0dd955a6fe18d381eb9322d1447e7 (diff)
downloadbusybox-95a040fac831a5b8c2297328ec0b3ada4024ee7a.tar.gz
- 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
Diffstat (limited to 'miscutils/rx.c')
-rw-r--r--miscutils/rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/rx.c b/miscutils/rx.c
index ef372d383..5fa98b5ef 100644
--- a/miscutils/rx.c
+++ b/miscutils/rx.c
@@ -290,7 +290,7 @@ int rx_main(int argc, char **argv)
bb_show_usage();
fn = argv[1];
- ttyfd = bb_xopen3("/dev/tty", O_RDWR, 0);
+ ttyfd = bb_xopen3(CURRENT_TTY, O_RDWR, 0);
filefd = bb_xopen3(fn, O_RDWR|O_CREAT|O_TRUNC, 0666);
if (tcgetattr(ttyfd, &tty) < 0)