gcc compile fixes
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@1952 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
+4
-4
@@ -7,7 +7,7 @@ struct filelog : log
|
||||
{
|
||||
FILE *file;
|
||||
|
||||
filelog(char *filepath)
|
||||
filelog(const char *filepath)
|
||||
{
|
||||
file = fopen(filepath, "w");
|
||||
}
|
||||
@@ -17,7 +17,7 @@ struct filelog : log
|
||||
if(file) fclose(file);
|
||||
}
|
||||
|
||||
virtual void writeline(int level, char *msg, ...)
|
||||
virtual void writeline(int level, const char *msg, ...)
|
||||
{
|
||||
if(!enabled) return;
|
||||
|
||||
@@ -41,7 +41,7 @@ struct filelog : log
|
||||
|
||||
struct syslog : log
|
||||
{
|
||||
virtual void writeline(int level, char *msg, ...)
|
||||
virtual void writeline(int level, const char *msg, ...)
|
||||
{
|
||||
|
||||
}
|
||||
@@ -51,4 +51,4 @@ struct syslog : log
|
||||
struct log *newlogger()
|
||||
{
|
||||
return new filelog("serverlog.txt");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user