diff --git a/common/log.c b/common/log.c index 9f75caff..495d489b 100644 --- a/common/log.c +++ b/common/log.c @@ -32,7 +32,7 @@ static FILE *logfile; static qboolean log_ok; void -init_log(char *filename) +init_log(const char *filename) { log_ok = false; if ((logfile = fopen(filename, "w"))) diff --git a/include/common/log.h b/include/common/log.h index dd1a19af..d9a60f5c 100644 --- a/include/common/log.h +++ b/include/common/log.h @@ -30,7 +30,7 @@ #include #include -void init_log(char *filename); +void init_log(const char *filename); void close_log(); void logprint(const char *fmt, ...) __attribute__((format(printf,1,2))); void logvprint(const char *fmt, va_list args) __attribute__((format(printf,1,0)));