common: constify init_log filename argument
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
This commit is contained in:
parent
cb59bfdc63
commit
5bb5c576f4
|
|
@ -32,7 +32,7 @@ static FILE *logfile;
|
||||||
static qboolean log_ok;
|
static qboolean log_ok;
|
||||||
|
|
||||||
void
|
void
|
||||||
init_log(char *filename)
|
init_log(const char *filename)
|
||||||
{
|
{
|
||||||
log_ok = false;
|
log_ok = false;
|
||||||
if ((logfile = fopen(filename, "w")))
|
if ((logfile = fopen(filename, "w")))
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <common/cmdlib.h>
|
#include <common/cmdlib.h>
|
||||||
|
|
||||||
void init_log(char *filename);
|
void init_log(const char *filename);
|
||||||
void close_log();
|
void close_log();
|
||||||
void logprint(const char *fmt, ...) __attribute__((format(printf,1,2)));
|
void logprint(const char *fmt, ...) __attribute__((format(printf,1,2)));
|
||||||
void logvprint(const char *fmt, va_list args) __attribute__((format(printf,1,0)));
|
void logvprint(const char *fmt, va_list args) __attribute__((format(printf,1,0)));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue