1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-06-09 09:54:07 +00:00

Added cast to integer for Solaris.

This commit is contained in:
Alexander Barton 2004-06-26 09:06:27 +00:00
parent 7f66fd908e
commit 8cd18eb6b4

View File

@ -14,7 +14,7 @@
#include "portab.h" #include "portab.h"
static char UNUSED id[] = "$Id: log.c,v 1.44.2.2 2004/05/15 23:51:13 alex Exp $"; static char UNUSED id[] = "$Id: log.c,v 1.44.2.3 2004/06/26 09:06:27 alex Exp $";
#include "imp.h" #include "imp.h"
#include <assert.h> #include <assert.h>
@ -182,7 +182,7 @@ va_dcl
if( NGIRCd_NoDaemon ) if( NGIRCd_NoDaemon )
{ {
/* auf Konsole ausgeben */ /* auf Konsole ausgeben */
fprintf( stdout, "[%d:%d] %s\n", getpid( ), Level, msg ); fprintf( stdout, "[%d:%d] %s\n", (INT)getpid( ), Level, msg );
fflush( stdout ); fflush( stdout );
} }
#ifdef SYSLOG #ifdef SYSLOG
@ -265,7 +265,7 @@ va_dcl
if( NGIRCd_NoDaemon ) if( NGIRCd_NoDaemon )
{ {
/* Output to console */ /* Output to console */
fprintf( stdout, "[%d:%d] %s\n", getpid( ), Level, msg ); fprintf( stdout, "[%d:%d] %s\n", (INT)getpid( ), Level, msg );
fflush( stdout ); fflush( stdout );
} }
#ifdef SYSLOG #ifdef SYSLOG