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:
driAn
2008-05-13 19:54:10 +00:00
parent d21b1112ea
commit b8cb9b64bc
3 changed files with 8 additions and 6 deletions
+4 -4
View File
@@ -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");
}
}
+1 -1
View File
@@ -569,7 +569,7 @@ struct log
log() : console(true), enabled(true) {};
virtual ~log() {};
virtual void writeline(int level, char *msg, ...) = 0;
virtual void writeline(int level, const char *msg, ...) = 0;
};
extern struct log *newlogger();
+3 -1
View File
@@ -268,4 +268,6 @@ bool isbigendian()
{
long one = 1;
return !(*((char *)(&one)));
}
}