diff --git a/src/common.h b/src/common.h index 53e9372..9ee0c07 100644 --- a/src/common.h +++ b/src/common.h @@ -75,7 +75,7 @@ struct control { extern struct player_mode pmode[]; -int report(char *, ...); +int report(const char *, ...); void delay_ms(int msec); @@ -90,7 +90,7 @@ int reset_tty(void); /* info */ void info_mod(struct xmp_module_info *, int); -void info_message(char *, ...); +void info_message(const char *, ...); void info_frame_init(void); void info_frame(struct xmp_module_info *, struct xmp_frame_info *, struct control *, int); void info_ins_smp(struct xmp_module_info *); diff --git a/src/info.c b/src/info.c index 2b67027..0257561 100644 --- a/src/info.c +++ b/src/info.c @@ -120,7 +120,7 @@ void info_frame_init(void) static int msg_timer = 0; static char msg_text[MSG_SIZE]; -void info_message(char *format, ...) +void info_message(const char *format, ...) { va_list ap; diff --git a/src/main.c b/src/main.c index 151c5ac..bd8d660 100644 --- a/src/main.c +++ b/src/main.c @@ -37,7 +37,7 @@ static unsigned int foreground_in, foreground_out; static int refresh_status; -int report(char *fmt, ...) +int report(const char *fmt, ...) { va_list a; int n;