X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Flog.c;fp=src%2Fngircd%2Flog.c;h=18fb6fa3288e9704589237ae49f526ec1916a6e7;hp=028f43532c7cb8778ad80ca3c3a58d795d533452;hb=8d01be7bbd2bbfd2524384af3cb9bdefaa87ea48;hpb=eb86d234f8553cb018fe86483ee754817689439a diff --git a/src/ngircd/log.c b/src/ngircd/log.c index 028f4353..18fb6fa3 100644 --- a/src/ngircd/log.c +++ b/src/ngircd/log.c @@ -53,7 +53,7 @@ Log_Message(int Level, const char *msg) if (!Is_Daemon) { /* log to console */ fprintf(stdout, "[%ld:%d %4ld] %s\n", (long)getpid(), Level, - (long)time(NULL) - NGIRCd_Start, msg); + (long)(time(NULL) - NGIRCd_Start), msg); fflush(stdout); } #ifdef SYSLOG