summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2004-08-17 01:45:48 +0000
committerJens Arnold <amiconn@rockbox.org>2004-08-17 01:45:48 +0000
commit0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb (patch)
tree7fe6cbadea41f09765b631794b71d65fdbbbffbc /uisimulator
parentc76c568b351d37c485f78cd185b2d52d54fe7a34 (diff)
Const policed pointer arguments to functions, part 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/lcd-common.c2
-rw-r--r--uisimulator/common/lcd-playersim.c2
-rw-r--r--uisimulator/win32/timefuncs.h4
-rw-r--r--uisimulator/x11/timefuncs.h4
4 files changed, 6 insertions, 6 deletions
diff --git a/uisimulator/common/lcd-common.c b/uisimulator/common/lcd-common.c
index f00e9a28b2..c69ef06f1f 100644
--- a/uisimulator/common/lcd-common.c
+++ b/uisimulator/common/lcd-common.c
@@ -30,7 +30,7 @@
#include "lcd-x11.h"
#endif
-void lcd_blit(unsigned char* p_data, int x, int y, int width, int height,
+void lcd_blit(const unsigned char* p_data, int x, int y, int width, int height,
int stride)
{
(void)p_data;
diff --git a/uisimulator/common/lcd-playersim.c b/uisimulator/common/lcd-playersim.c
index ed633b849f..3f3453b9a1 100644
--- a/uisimulator/common/lcd-playersim.c
+++ b/uisimulator/common/lcd-playersim.c
@@ -222,7 +222,7 @@ void lcd_double_height(bool on)
lcd_update();
}
-void lcd_define_hw_pattern(int which, char *pattern, int length)
+void lcd_define_hw_pattern(int which, const char *pattern, int length)
{
int i, j;
int pat = which / 8;
diff --git a/uisimulator/win32/timefuncs.h b/uisimulator/win32/timefuncs.h
index 57bb3de5ce..8fbc5b1c85 100644
--- a/uisimulator/win32/timefuncs.h
+++ b/uisimulator/win32/timefuncs.h
@@ -4,5 +4,5 @@
/* struct tm defined */
struct tm *get_time(void);
-int set_time(struct tm *tm);
-bool valid_time(struct tm *tm);
+int set_time(const struct tm *tm);
+bool valid_time(const struct tm *tm);
diff --git a/uisimulator/x11/timefuncs.h b/uisimulator/x11/timefuncs.h
index 59e8b249eb..de17fcdc73 100644
--- a/uisimulator/x11/timefuncs.h
+++ b/uisimulator/x11/timefuncs.h
@@ -3,5 +3,5 @@
/* struct tm defined */
struct tm *get_time(void);
-int set_time(struct tm *tm);
-bool valid_time(struct tm *tm);
+int set_time(const struct tm *tm);
+bool valid_time(const struct tm *tm);