diff options
author | Denis Vlasenko | 2008-06-08 00:24:43 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-06-08 00:24:43 +0000 |
commit | b597564e4c1fefd641a5f26a4e53d8b65d5fdcdf (patch) | |
tree | 3c3c688e7d99c1f15699a77abd59961ca789b180 /networking | |
parent | 09c0a749a126180a3f64db2171355731fd40a29f (diff) | |
download | busybox-b597564e4c1fefd641a5f26a4e53d8b65d5fdcdf.zip busybox-b597564e4c1fefd641a5f26a4e53d8b65d5fdcdf.tar.gz |
ifenslave: tiny shrink
text data bss dec hex filename
2221 0 0 2221 8ad busybox.t5/networking/ifenslave.o
2215 0 0 2215 8a7 busybox.t6/networking/ifenslave.o
Diffstat (limited to 'networking')
-rw-r--r-- | networking/ifenslave.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/networking/ifenslave.c b/networking/ifenslave.c index 4483986..1e983f2 100644 --- a/networking/ifenslave.c +++ b/networking/ifenslave.c @@ -434,8 +434,9 @@ static NOINLINE void get_drv_info(char *master_ifname) memset(&ifr, 0, sizeof(ifr)); ifr.ifr_data = (caddr_t)&info; info.cmd = ETHTOOL_GDRVINFO; - strncpy(info.driver, "ifenslave", 32); - snprintf(info.fw_version, 32, "%d", BOND_ABI_VERSION); + /* both fields are 32 bytes long (long enough) */ + strcpy(info.driver, "ifenslave"); + strcpy(info.fw_version, utoa(BOND_ABI_VERSION)); if (set_ifrname_and_do_ioctl(SIOCETHTOOL, &ifr, master_ifname) < 0) { if (errno == EOPNOTSUPP) return; |