From 695fa51c80047eb25cc82e6e1630b4545a6bc0b6 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 6 Jan 2010 18:16:39 +0100 Subject: 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 --- networking/tc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'networking/tc.c') 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) struct tc_cbq_wrropt *wrr = NULL; struct tc_cbq_fopt *fopt = NULL; struct tc_cbq_ovl *ovl = NULL; - const char * const error = "CBQ: too short %s opt"; - RESERVE_CONFIG_BUFFER(buf, 64); + const char *const error = "CBQ: too short %s opt"; + char buf[64]; if (opt == NULL) goto done; @@ -272,7 +272,6 @@ static int cbq_print_opt(struct rtattr *opt) } } done: - RELEASE_CONFIG_BUFFER(buf); return 0; } -- cgit v1.2.3