Module: ngircd.git Branch: master Commit: 8d01be7bbd2bbfd2524384af3cb9bdefaa87ea48 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=8d01b...
Author: Federico G. Schwindt fgsch@lodoss.net Date: Sun Aug 25 00:07:06 2013 +0100
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.
---
src/ngircd/log.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/ngircd/log.c b/src/ngircd/log.c index 028f435..18fb6fa 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
ngircd-commits@lists.barton.de