From 4e12b1a2a9e68685dff61acaee1e1f6c377d978c Mon Sep 17 00:00:00 2001
From: Denis Vlasenko <vda.linux@googlemail.com>
Date: Tue, 23 Dec 2008 23:36:47 +0000
Subject: libbb: introduce and use xmalloc_ttyname (-32 in bss). ash: small
code shrink
text data bss dec hex filename
793669 504 7524 801697 c3ba1 busybox_old
793659 504 7492 801655 c3b77 busybox_unstripped
---
init/mesg.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'init/mesg.c')
diff --git a/init/mesg.c b/init/mesg.c
index cfb517f60..ca230f363 100644
--- a/init/mesg.c
+++ b/init/mesg.c
@@ -25,7 +25,7 @@ int mesg_main(int argc, char **argv)
if (--argc == 0
|| (argc == 1 && ((c = **++argv) == 'y' || c == 'n'))
) {
- tty = ttyname(STDERR_FILENO);
+ tty = xmalloc_ttyname(STDERR_FILENO);
if (tty == NULL) {
tty = "ttyname";
} else if (stat(tty, &sb) == 0) {
--
cgit v1.2.3-55-g6feb