projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09c0a74
)
ifenslave: tiny shrink
author
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 8 Jun 2008 00:24:43 +0000
(
00:24
-0000)
committer
Denis Vlasenko
<vda.linux@googlemail.com>
Sun, 8 Jun 2008 00:24:43 +0000
(
00:24
-0000)
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
networking/ifenslave.c
patch
|
blob
|
history
diff --git
a/networking/ifenslave.c
b/networking/ifenslave.c
index 44839868abfb607fae2079ff326479adcda915f4..1e983f2ba448ec172ac5bb5885b0bf8618498a43 100644
(file)
--- 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;