diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-21 02:21:45 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-04-21 02:21:45 +0000 |
commit | 01eaee9309c09ca5d7dc6ef3b2e96084affdab30 (patch) | |
tree | 4679b85ef024d357f3e3ada864555a63172a050d /networking/ifconfig.c | |
parent | 0a1446275d88946734417ed96a3c0f1d7ea969e4 (diff) | |
download | busybox-w32-01eaee9309c09ca5d7dc6ef3b2e96084affdab30.tar.gz busybox-w32-01eaee9309c09ca5d7dc6ef3b2e96084affdab30.tar.bz2 busybox-w32-01eaee9309c09ca5d7dc6ef3b2e96084affdab30.zip |
*: s/IF_NAMESIZE/IFNAMSIZ/, regularize its use a bit.
function old new delta
strncpy_IFNAMSIZ - 13 +13
set_slave_mtu 39 37 -2
set_slave_hwaddr 52 50 -2
set_master_hwaddr 52 50 -2
set_if_flags 40 38 -2
get_if_settings 101 98 -3
ifenslave_main 1680 1661 -19
vconfig_main 306 280 -26
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 0/7 up/down: 13/-56) Total: -43 bytes
Diffstat (limited to 'networking/ifconfig.c')
-rw-r--r-- | networking/ifconfig.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/ifconfig.c b/networking/ifconfig.c index fcbeb2420..9e95533cc 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c | |||
@@ -315,7 +315,7 @@ int ifconfig_main(int argc, char **argv) | |||
315 | sockfd = xsocket(AF_INET, SOCK_DGRAM, 0); | 315 | sockfd = xsocket(AF_INET, SOCK_DGRAM, 0); |
316 | 316 | ||
317 | /* get interface name */ | 317 | /* get interface name */ |
318 | safe_strncpy(ifr.ifr_name, *argv, IFNAMSIZ); | 318 | strncpy(ifr.ifr_name, *argv, IFNAMSIZ); |
319 | 319 | ||
320 | /* Process the remaining arguments. */ | 320 | /* Process the remaining arguments. */ |
321 | while (*++argv != (char *) NULL) { | 321 | while (*++argv != (char *) NULL) { |