Update plugins to cast time_t to long when formatting with %ld.
Fixes platforms where time_t and long are different sizes. git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@474 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
@@ -1049,7 +1049,7 @@ char *fserv_savname = NULL;
|
||||
if (statistics.files_served)
|
||||
{
|
||||
fprintf(fp, "%s%s %lu\n", bogus, "_totalserved", statistics.files_served);
|
||||
fprintf(fp, "%s%s %lu\n", bogus, "_totalstart", statistics.starttime);
|
||||
fprintf(fp, "%s%s %ld\n", bogus, "_totalstart", (long)statistics.starttime);
|
||||
fprintf(fp, "%s%s %lu\n", bogus, "_totalsizeserved", statistics.filesize_served);
|
||||
}
|
||||
fclose(fp);
|
||||
|
||||
Reference in New Issue
Block a user