From b8d1a4cd5f686ee95f6cf13634cba1f96e382f26 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 20 Sep 2008 16:28:59 +0000 Subject: init: set stderr to NONBLOCK *: s/setenv(a,b,1)/xsetenv(a,b)/ function old new delta init_main 856 895 +39 message 146 144 -2 crond_main 1418 1416 -2 run 661 658 -3 zcip_main 1409 1403 -6 edit_file 910 901 -9 environment 20 - -20 --- networking/zcip.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'networking/zcip.c') diff --git a/networking/zcip.c b/networking/zcip.c index 221edd322..f406b6c16 100644 --- a/networking/zcip.c +++ b/networking/zcip.c @@ -144,7 +144,7 @@ static int run(char *argv[3], struct in_addr *ip) if (ip) { addr = inet_ntoa(*ip); - setenv("ip", addr, 1); + xsetenv("ip", addr); fmt -= 3; } bb_info_msg(fmt, argv[1], intf, addr); @@ -238,7 +238,7 @@ int zcip_main(int argc, char **argv) intf = argv[0]; script_av[0] = argv[1]; - setenv("interface", intf, 1); + xsetenv("interface", intf); // initialize the interface (modprobe, ifup, etc) script_av[1] = (char*)"init"; -- cgit v1.2.3