summaryrefslogtreecommitdiff
path: root/apps/screens.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-08-18 01:09:31 +0000
committerJens Arnold <amiconn@rockbox.org>2004-08-18 01:09:31 +0000
commit8fb336148fb34474c67fbc6e0354daa4512a22fb (patch)
tree5910d0a54bf8424b424939a263abef0f570591f7 /apps/screens.c
parent6d0da414bfea35b4370ad820d28d4565521d7b12 (diff)
downloadrockbox-8fb336148fb34474c67fbc6e0354daa4512a22fb.tar.gz
rockbox-8fb336148fb34474c67fbc6e0354daa4512a22fb.zip
Const policed pointer arguments to functions, part 3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4999 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/screens.c')
-rw-r--r--apps/screens.c12
1 files changed, 6 insertions, 6 deletions
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)
656#define MAXLINES 2 656#define MAXLINES 2
657#endif 657#endif
658 658
659void splash(int ticks, /* how long the splash is displayed */ 659void splash(int ticks, /* how long the splash is displayed */
660 bool center, /* FALSE means left-justified, TRUE means 660 bool center, /* FALSE means left-justified, TRUE means
661 horizontal and vertical center */ 661 horizontal and vertical center */
662 char *fmt, /* what to say *printf style */ 662 const char *fmt, /* what to say *printf style */
663 ...) 663 ...)
664{ 664{
665 char *next; 665 char *next;
@@ -813,7 +813,7 @@ void charging_splash(void)
813#ifdef HAVE_LCD_BITMAP 813#ifdef HAVE_LCD_BITMAP
814 814
815/* little helper function for voice output */ 815/* little helper function for voice output */
816static void say_time(int cursorpos, struct tm *tm) 816static void say_time(int cursorpos, const struct tm *tm)
817{ 817{
818 const int unit[] = { UNIT_HOUR, UNIT_MIN, UNIT_SEC, 0, 0, 0 }; 818 const int unit[] = { UNIT_HOUR, UNIT_MIN, UNIT_SEC, 0, 0, 0 };
819 int value = 0; 819 int value = 0;
@@ -850,7 +850,7 @@ static void say_time(int cursorpos, struct tm *tm)
850#define INDEX_X 0 850#define INDEX_X 0
851#define INDEX_Y 1 851#define INDEX_Y 1
852#define INDEX_WIDTH 2 852#define INDEX_WIDTH 2
853bool set_time_screen(char* string, struct tm *tm) 853bool set_time_screen(const char* string, struct tm *tm)
854{ 854{
855 bool done = false; 855 bool done = false;
856 int button; 856 int button;