diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-20 16:28:59 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-20 16:28:59 +0000 |
commit | b8d1a4cd5f686ee95f6cf13634cba1f96e382f26 (patch) | |
tree | 86423f82c3593245aedae65e2e4c8f7e0c4d6482 /networking/zcip.c | |
parent | b61dc1c1cea7aaef3cd2aa016a9c7d4d1ffd71bf (diff) | |
download | busybox-w32-b8d1a4cd5f686ee95f6cf13634cba1f96e382f26.tar.gz busybox-w32-b8d1a4cd5f686ee95f6cf13634cba1f96e382f26.tar.bz2 busybox-w32-b8d1a4cd5f686ee95f6cf13634cba1f96e382f26.zip |
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/zcip.c')
-rw-r--r-- | networking/zcip.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) | |||
144 | 144 | ||
145 | if (ip) { | 145 | if (ip) { |
146 | addr = inet_ntoa(*ip); | 146 | addr = inet_ntoa(*ip); |
147 | setenv("ip", addr, 1); | 147 | xsetenv("ip", addr); |
148 | fmt -= 3; | 148 | fmt -= 3; |
149 | } | 149 | } |
150 | bb_info_msg(fmt, argv[1], intf, addr); | 150 | bb_info_msg(fmt, argv[1], intf, addr); |
@@ -238,7 +238,7 @@ int zcip_main(int argc, char **argv) | |||
238 | 238 | ||
239 | intf = argv[0]; | 239 | intf = argv[0]; |
240 | script_av[0] = argv[1]; | 240 | script_av[0] = argv[1]; |
241 | setenv("interface", intf, 1); | 241 | xsetenv("interface", intf); |
242 | 242 | ||
243 | // initialize the interface (modprobe, ifup, etc) | 243 | // initialize the interface (modprobe, ifup, etc) |
244 | script_av[1] = (char*)"init"; | 244 | script_av[1] = (char*)"init"; |