commit 8d01be7bbd2bbfd2524384af3cb9bdefaa87ea48 from: Federico G. Schwindt date: Sun Aug 25 04:24:11 2013 UTC Silence warning Cast the result of the operation to long, not the time(NULL) call. On systems where sizeof(time_t) is other than long this will produce a warning. commit - eb86d234f8553cb018fe86483ee754817689439a commit + 8d01be7bbd2bbfd2524384af3cb9bdefaa87ea48 blob - 028f43532c7cb8778ad80ca3c3a58d795d533452 blob + 18fb6fa3288e9704589237ae49f526ec1916a6e7 --- src/ngircd/log.c +++ 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