Const policed pointer arguments to functions, part 4

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5001 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2004-08-18 19:59:06 +00:00
parent f50bbce438
commit 2f20b3e784
5 changed files with 7 additions and 7 deletions

View file

@ -261,7 +261,7 @@ struct plugin_api {
#endif
void (*plugin_tsr)(void (*exit_callback)(void));
#if defined(DEBUG) || defined(SIMULATOR)
void (*debugf)(char *fmt, ...);
void (*debugf)(const char *fmt, ...);
#endif
struct user_settings* global_settings;
void (*backlight_set_timeout)(int index);

View file

@ -33,7 +33,7 @@
#define KEYBOARD_LINES 4
#define KEYBOARD_PAGES 3
static void kbd_setupkeys(char* line[KEYBOARD_LINES], int page)
static void kbd_setupkeys(const char* line[KEYBOARD_LINES], int page)
{
switch (page) {
case 0:
@ -85,7 +85,7 @@ int kbd_input(char* text, int buflen)
int len;
int editpos;
bool redraw = true;
char* line[KEYBOARD_LINES];
const char* line[KEYBOARD_LINES];
char outline[256];
char c = 0;

View file

@ -122,7 +122,7 @@ static const long clip_time_out[] = {
dBfs values. Used to draw the scale */
#define DB_SCALE_SRC_VALUES_SIZE 11
#if 0
const static int db_scale_src_values[DB_SCALE_SRC_VALUES_SIZE] = {
static const int db_scale_src_values[DB_SCALE_SRC_VALUES_SIZE] = {
32767, /* 0 db */
23197, /* - 3 db */
16422, /* - 6 db */

View file

@ -20,8 +20,8 @@
#define DEBUG_H
extern void debug_init(void);
extern void debugf(char* fmt,...);
extern void ldebugf(char* file, int line, char *fmt, ...);
extern void debugf(const char* fmt,...);
extern void ldebugf(const char* file, int line, const char *fmt, ...);
#ifdef __GNUC__

View file

@ -47,7 +47,7 @@ void debug( const char *message )
printf("%s", message);
}
void debugf(char *fmt, ...)
void debugf(const char *fmt, ...)
{
va_list ap;