about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2005-03-20 13:54:06 +0000
committerFlorian Westphal <fw@strlen.de>2005-03-20 13:54:06 +0000
commit326607eea1189ede39eaebeda1661b299ef564cc (patch)
treeca6f5cee61c286db8549488f54671c41db0a7783 /src
parentbfba1f37ed6687777e18653e62608cc54589c4a0 (diff)
downloadngircd-326607eea1189ede39eaebeda1661b299ef564cc.tar.gz
ngircd-326607eea1189ede39eaebeda1661b299ef564cc.zip
changed type of Conf_ListenPorts[] from "unsigned int" to UINT16.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/conf.c4
-rw-r--r--src/ngircd/conf.h4
-rw-r--r--src/ngircd/conn.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/src/ngircd/conf.c b/src/ngircd/conf.c
index 276fc81e..412402fc 100644
--- a/src/ngircd/conf.c
+++ b/src/ngircd/conf.c
@@ -14,7 +14,7 @@
 
 #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>
@@ -128,7 +128,7 @@ Conf_Test( void )
 	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 );
diff --git a/src/ngircd/conf.h b/src/ngircd/conf.h
index 8c047699..e4ff6064 100644
--- a/src/ngircd/conf.h
+++ b/src/ngircd/conf.h
@@ -8,7 +8,7 @@
  * (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)
  */
@@ -77,7 +77,7 @@ GLOBAL char Conf_MotdFile[FNAME_LEN];
 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) */
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index a3960877..d334b169 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -16,7 +16,7 @@
 
 #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>
@@ -218,7 +218,7 @@ Conn_InitListeners( void )
 	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 */