diff options
| author | Federico G. Schwindt <fgsch@lodoss.net> | 2013-08-25 00:07:06 +0100 |
|---|---|---|
| committer | Federico G. Schwindt <fgsch@lodoss.net> | 2013-08-25 05:24:11 +0100 |
| commit | 8d01be7bbd2bbfd2524384af3cb9bdefaa87ea48 (patch) | |
| tree | 71d172e135730a2c47e5bb3173a28dd4183794cb /src | |
| parent | eb86d234f8553cb018fe86483ee754817689439a (diff) | |
| download | ngircd-8d01be7bbd2bbfd2524384af3cb9bdefaa87ea48.tar.gz ngircd-8d01be7bbd2bbfd2524384af3cb9bdefaa87ea48.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/log.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |