From 8f94d4b4210617e48793ee9785ecb9f0988b67f9 Mon Sep 17 00:00:00 2001 From: Markus Hitter Date: Sun, 2 Sep 2012 19:28:12 +0200 Subject: [PATCH] clock.c: make clock_10ms() and clock_250ms() static. These shouldn't be called by outside code, use clock() instead. Surprisingly, this saves another 12 bytes binary size. --- clock.c | 4 ++-- clock.h | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/clock.c b/clock.c index 495af6e..a14b439 100644 --- a/clock.c +++ b/clock.c @@ -22,7 +22,7 @@ called from clock_10ms(), do not call directly */ -void clock_250ms() { +static void clock_250ms() { #ifndef NO_AUTO_IDLE if (temp_all_zero()) { if (psu_timeout > (30 * 4)) { @@ -67,7 +67,7 @@ void clock_250ms() { called from clock(), do not call directly */ -void clock_10ms() { +static void clock_10ms() { // reset watchdog wd_reset(); diff --git a/clock.h b/clock.h index b2dd456..c0266b8 100644 --- a/clock.h +++ b/clock.h @@ -1,8 +1,6 @@ #ifndef _CLOCK_H #define _CLOCK_H -void clock_250ms(void); -void clock_10ms(void); void clock(void); #endif /* _CLOCK_H */