summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenis Vlasenko2008-09-20 16:28:59 +0000
committerDenis Vlasenko2008-09-20 16:28:59 +0000
commitb8d1a4cd5f686ee95f6cf13634cba1f96e382f26 (patch)
tree86423f82c3593245aedae65e2e4c8f7e0c4d6482 /networking
parentb61dc1c1cea7aaef3cd2aa016a9c7d4d1ffd71bf (diff)
downloadbusybox-b8d1a4cd5f686ee95f6cf13634cba1f96e382f26.zip
busybox-b8d1a4cd5f686ee95f6cf13634cba1f96e382f26.tar.gz
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
Diffstat (limited to 'networking')
-rw-r--r--networking/zcip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/zcip.c b/networking/zcip.c
index 221edd3..f406b6c 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";