Const policed pointer arguments to functions, part 2

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-08-17 01:45:48 +00:00
parent c76c568b35
commit 0ceaa5e365
17 changed files with 55 additions and 51 deletions

View file

@ -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;

View file

@ -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;

View file

@ -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);

View file

@ -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);