From 5bb5c576f42c87eae843a434951aef027e160b6b Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Mon, 11 Feb 2013 20:10:17 +1030 Subject: [PATCH] common: constify init_log filename argument Signed-off-by: Kevin Shanahan --- common/log.c | 2 +- include/common/log.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)));