commit - bfba1f37ed6687777e18653e62608cc54589c4a0
commit + 326607eea1189ede39eaebeda1661b299ef564cc
blob - 276fc81ec838a93043d0f57a9ed7012fa7075cc9
blob + 412402fc727bebeb2102113119c8db284aabbee4
--- src/ngircd/conf.c
+++ src/ngircd/conf.c
#include "portab.h"
-static char UNUSED id[] = "$Id: conf.c,v 1.72 2005/03/19 18:43:48 fw Exp $";
+static char UNUSED id[] = "$Id: conf.c,v 1.73 2005/03/20 13:54:06 fw Exp $";
#include "imp.h"
#include <assert.h>
for( i = 0; i < Conf_ListenPorts_Count; i++ )
{
if( i != 0 ) printf( ", " );
- printf( "%u", Conf_ListenPorts[i] );
+ printf( "%u", (unsigned int) Conf_ListenPorts[i] );
}
puts( "" );
printf( " Listen = %s\n", Conf_ListenAddress );
blob - 8c047699228582db28c09dc13e23b79cc348ad0c
blob + e4ff606430bdb15c6e04cfbbac6f56064a8f8f33
--- src/ngircd/conf.h
+++ src/ngircd/conf.h
* (at your option) any later version.
* Please read the file COPYING, README and AUTHORS for more information.
*
- * $Id: conf.h,v 1.33 2005/03/19 18:43:48 fw Exp $
+ * $Id: conf.h,v 1.34 2005/03/20 13:54:06 fw Exp $
*
* Configuration management (header)
*/
GLOBAL char Conf_MotdPhrase[LINE_LEN];
/* Ports the server should listen on */
-GLOBAL unsigned int Conf_ListenPorts[MAX_LISTEN_PORTS];
+GLOBAL UINT16 Conf_ListenPorts[MAX_LISTEN_PORTS];
GLOBAL int Conf_ListenPorts_Count;
/* Address to which the socket should be bound or empty (=all) */
blob - a3960877d70723479dd59e37eed51fa781225894
blob + d334b16937082652a4bafcef780847a3f4776766
--- src/ngircd/conn.c
+++ src/ngircd/conn.c
#include "portab.h"
-static char UNUSED id[] = "$Id: conn.c,v 1.145 2005/03/20 11:00:31 fw Exp $";
+static char UNUSED id[] = "$Id: conn.c,v 1.146 2005/03/20 13:54:06 fw Exp $";
#include "imp.h"
#include <assert.h>
for( i = 0; i < Conf_ListenPorts_Count; i++ )
{
if( Conn_NewListener( Conf_ListenPorts[i] )) created++;
- else Log( LOG_ERR, "Can't listen on port %u!", Conf_ListenPorts[i] );
+ else Log( LOG_ERR, "Can't listen on port %u!", (unsigned int) Conf_ListenPorts[i] );
}
return created;
} /* Conn_InitListeners */