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:
Kevin Easton
2013-11-16 10:59:34 +00:00
parent 87de292f53
commit 324cdd4c85
4 changed files with 22 additions and 13 deletions

View File

@@ -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);