From 8fb336148fb34474c67fbc6e0354daa4512a22fb Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Wed, 18 Aug 2004 01:09:31 +0000 Subject: Const policed pointer arguments to functions, part 3 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4999 a1c6a512-1295-4272-9138-f99709370657 --- apps/screens.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'apps/screens.c') diff --git a/apps/screens.c b/apps/screens.c index a926063efc..3e30e3e021 100644 --- a/apps/screens.c +++ b/apps/screens.c @@ -656,10 +656,10 @@ bool quick_screen(int context, int button) #define MAXLINES 2 #endif -void splash(int ticks, /* how long the splash is displayed */ - bool center, /* FALSE means left-justified, TRUE means - horizontal and vertical center */ - char *fmt, /* what to say *printf style */ +void splash(int ticks, /* how long the splash is displayed */ + bool center, /* FALSE means left-justified, TRUE means + horizontal and vertical center */ + const char *fmt, /* what to say *printf style */ ...) { char *next; @@ -813,7 +813,7 @@ void charging_splash(void) #ifdef HAVE_LCD_BITMAP /* little helper function for voice output */ -static void say_time(int cursorpos, struct tm *tm) +static void say_time(int cursorpos, const struct tm *tm) { const int unit[] = { UNIT_HOUR, UNIT_MIN, UNIT_SEC, 0, 0, 0 }; int value = 0; @@ -850,7 +850,7 @@ static void say_time(int cursorpos, struct tm *tm) #define INDEX_X 0 #define INDEX_Y 1 #define INDEX_WIDTH 2 -bool set_time_screen(char* string, struct tm *tm) +bool set_time_screen(const char* string, struct tm *tm) { bool done = false; int button; -- cgit v1.2.3