X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fconf.c;h=9db611a1876975a6e0010f4c4421adad3f90c97b;hp=df93b28b79ad5930ba21bd5462054c7b2d14bb23;hb=95a4b1b1587f33692830153d6d03081b5e51d172;hpb=c0ef984273811ee3aa0358d101d604a77d04e059 diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c index df93b28b..9db611a1 100644 --- a/src/ngircd/conf.c +++ b/src/ngircd/conf.c @@ -9,7 +9,7 @@ * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS. * - * $Id: conf.c,v 1.19 2002/03/25 16:14:15 alex Exp $ + * $Id: conf.c,v 1.20 2002/03/25 19:11:01 alex Exp $ * * conf.h: Konfiguration des ngircd */ @@ -170,7 +170,7 @@ LOCAL VOID Read_Config( VOID ) GLOBAL VOID Handle_GLOBAL( INT Line, CHAR *Var, CHAR *Arg ) { CHAR *ptr; - INT port; + INT32 port; assert( Line > 0 ); assert( Var != NULL ); @@ -209,7 +209,7 @@ GLOBAL VOID Handle_GLOBAL( INT Line, CHAR *Var, CHAR *Arg ) if( Conf_ListenPorts_Count + 1 > MAX_LISTEN_PORTS ) Log( LOG_ERR, "Too many listen ports configured. Port %ld ignored.", port ); else { - if( port > 0 && port < 0xFFFF ) Conf_ListenPorts[Conf_ListenPorts_Count++] = port; + if( port > 0 && port < 0xFFFF ) Conf_ListenPorts[Conf_ListenPorts_Count++] = (INT)port; else Log( LOG_ERR, "%s, line %d (section \"Global\"): Illegal port number %ld!", Conf_File, Line, port ); } ptr = strtok( NULL, "," );