From: Alexander Barton Date: Sat, 26 Jun 2004 08:50:44 +0000 (+0000) Subject: Added cast to integer for Solaris. X-Git-Tag: rel-0-9-0-pre1~176 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=364ff7087def59f7db87f1fa0f97eb47039b493c;p=ngircd.git Added cast to integer for Solaris. --- diff --git a/src/ngircd/log.c b/src/ngircd/log.c index 6017841f..7fa57255 100644 --- a/src/ngircd/log.c +++ b/src/ngircd/log.c @@ -14,7 +14,7 @@ #include "portab.h" -static char UNUSED id[] = "$Id: log.c,v 1.46 2004/05/10 23:57:46 alex Exp $"; +static char UNUSED id[] = "$Id: log.c,v 1.47 2004/06/26 08:50:44 alex Exp $"; #include "imp.h" #include @@ -182,7 +182,7 @@ va_dcl if( NGIRCd_NoDaemon ) { /* auf Konsole ausgeben */ - fprintf( stdout, "[%d:%d] %s\n", getpid( ), Level, msg ); + fprintf( stdout, "[%d:%d] %s\n", (INT)getpid( ), Level, msg ); fflush( stdout ); } #ifdef SYSLOG @@ -265,7 +265,7 @@ va_dcl if( NGIRCd_NoDaemon ) { /* Output to console */ - fprintf( stdout, "[%d:%d] %s\n", getpid( ), Level, msg ); + fprintf( stdout, "[%d:%d] %s\n", (INT)getpid( ), Level, msg ); fflush( stdout ); } #ifdef SYSLOG