aboutsummaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-01-06 18:16:39 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2010-01-06 18:16:39 +0100
commit695fa51c80047eb25cc82e6e1630b4545a6bc0b6 (patch)
treeaaee37e1b947c40dd660dc2ccb77ac20895e13f8 /networking
parent06667f21d6d28bf3acbc12474cf52c9bc20c884b (diff)
downloadbusybox-w32-695fa51c80047eb25cc82e6e1630b4545a6bc0b6.tar.gz
busybox-w32-695fa51c80047eb25cc82e6e1630b4545a6bc0b6.tar.bz2
busybox-w32-695fa51c80047eb25cc82e6e1630b4545a6bc0b6.zip
hwclock: fix sizeof bug (used it on pointer, not array); make --systohc exact
function old new delta hwclock_main 329 428 +99 rtc_adjtime_is_utc 138 134 -4 edir 365 354 -11 read_rtc 39 23 -16 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/3 up/down: 99/-31) Total: 68 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r--networking/tc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/networking/tc.c b/networking/tc.c
index 3115a5254..dbdba3317 100644
--- a/networking/tc.c
+++ b/networking/tc.c
@@ -191,8 +191,8 @@ static int cbq_print_opt(struct rtattr *opt)
191 struct tc_cbq_wrropt *wrr = NULL; 191 struct tc_cbq_wrropt *wrr = NULL;
192 struct tc_cbq_fopt *fopt = NULL; 192 struct tc_cbq_fopt *fopt = NULL;
193 struct tc_cbq_ovl *ovl = NULL; 193 struct tc_cbq_ovl *ovl = NULL;
194 const char * const error = "CBQ: too short %s opt"; 194 const char *const error = "CBQ: too short %s opt";
195 RESERVE_CONFIG_BUFFER(buf, 64); 195 char buf[64];
196 196
197 if (opt == NULL) 197 if (opt == NULL)
198 goto done; 198 goto done;
@@ -272,7 +272,6 @@ static int cbq_print_opt(struct rtattr *opt)
272 } 272 }
273 } 273 }
274 done: 274 done:
275 RELEASE_CONFIG_BUFFER(buf);
276 return 0; 275 return 0;
277} 276}
278 277