mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	made a few config options unsigned.
This commit is contained in:
		| @@ -17,7 +17,7 @@ | ||||
|  | ||||
| #include "portab.h" | ||||
|  | ||||
| static char UNUSED id[] = "$Id: channel.c,v 1.50 2005/06/18 08:57:37 fw Exp $"; | ||||
| static char UNUSED id[] = "$Id: channel.c,v 1.51 2005/07/11 14:11:35 fw Exp $"; | ||||
|  | ||||
| #include "imp.h" | ||||
| #include <assert.h> | ||||
| @@ -76,7 +76,7 @@ Channel_InitPredefined( void ) | ||||
|  | ||||
| 	CHANNEL *chan; | ||||
| 	char *c; | ||||
| 	int i; | ||||
| 	unsigned int i; | ||||
| 	 | ||||
| 	for( i = 0; i < Conf_Channel_Count; i++ ) | ||||
| 	{ | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
|  | ||||
| #include "portab.h" | ||||
|  | ||||
| static char UNUSED id[] = "$Id: conf.c,v 1.78 2005/07/07 18:46:46 fw Exp $"; | ||||
| static char UNUSED id[] = "$Id: conf.c,v 1.79 2005/07/11 14:11:35 fw Exp $"; | ||||
|  | ||||
| #include "imp.h" | ||||
| #include <assert.h> | ||||
| @@ -97,7 +97,7 @@ Conf_Test( void ) | ||||
|  | ||||
| 	struct passwd *pwd; | ||||
| 	struct group *grp; | ||||
| 	int i; | ||||
| 	unsigned int i; | ||||
|  | ||||
| 	Use_Log = false; | ||||
| 	Set_Defaults( true ); | ||||
|   | ||||
| @@ -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.34 2005/03/20 13:54:06 fw Exp $ | ||||
|  * $Id: conf.h,v 1.35 2005/07/11 14:11:35 fw Exp $ | ||||
|  * | ||||
|  * Configuration management (header) | ||||
|  */ | ||||
| @@ -78,7 +78,7 @@ GLOBAL char Conf_MotdPhrase[LINE_LEN]; | ||||
|  | ||||
| /* Ports the server should listen on */ | ||||
| GLOBAL UINT16 Conf_ListenPorts[MAX_LISTEN_PORTS]; | ||||
| GLOBAL int Conf_ListenPorts_Count; | ||||
| GLOBAL unsigned int Conf_ListenPorts_Count; | ||||
|  | ||||
| /* Address to which the socket should be bound or empty (=all) */ | ||||
| GLOBAL char Conf_ListenAddress[16]; | ||||
| @@ -102,14 +102,14 @@ GLOBAL int Conf_ConnectRetry; | ||||
|  | ||||
| /* Operators */ | ||||
| GLOBAL CONF_OPER Conf_Oper[MAX_OPERATORS]; | ||||
| GLOBAL int Conf_Oper_Count; | ||||
| GLOBAL unsigned int Conf_Oper_Count; | ||||
|  | ||||
| /* Servers */ | ||||
| GLOBAL CONF_SERVER Conf_Server[MAX_SERVERS]; | ||||
|  | ||||
| /* Pre-defined channels */ | ||||
| GLOBAL CONF_CHANNEL Conf_Channel[MAX_DEFCHANNELS]; | ||||
| GLOBAL int Conf_Channel_Count; | ||||
| GLOBAL unsigned int Conf_Channel_Count; | ||||
|  | ||||
| /* Are IRC operators allowed to always use MODE? */ | ||||
| GLOBAL bool Conf_OperCanMode; | ||||
|   | ||||
| @@ -17,7 +17,7 @@ | ||||
| #include "portab.h" | ||||
| #include "io.h" | ||||
|  | ||||
| static char UNUSED id[] = "$Id: conn.c,v 1.159 2005/07/09 21:35:20 fw Exp $"; | ||||
| static char UNUSED id[] = "$Id: conn.c,v 1.160 2005/07/11 14:11:35 fw Exp $"; | ||||
|  | ||||
| #include "imp.h" | ||||
| #include <assert.h> | ||||
| @@ -278,7 +278,8 @@ Conn_InitListeners( void ) | ||||
| { | ||||
| 	/* Initialize ports on which the server should accept connections */ | ||||
|  | ||||
| 	int created, i; | ||||
| 	int created; | ||||
| 	unsigned int i; | ||||
|  | ||||
| 	if (!io_library_init(CONNECTION_POOL)) { | ||||
| 		Log(LOG_EMERG, "Cannot initialize IO routines: %s", strerror(errno)); | ||||
|   | ||||
| @@ -14,7 +14,7 @@ | ||||
|  | ||||
| #include "portab.h" | ||||
|  | ||||
| static char UNUSED id[] = "$Id: irc-oper.c,v 1.22 2005/06/12 18:02:09 fw Exp $"; | ||||
| static char UNUSED id[] = "$Id: irc-oper.c,v 1.23 2005/07/11 14:11:35 fw Exp $"; | ||||
|  | ||||
| #include "imp.h" | ||||
| #include <assert.h> | ||||
| @@ -50,7 +50,7 @@ Bad_OperPass(CLIENT *Client, char *errtoken, char *errmsg) | ||||
| GLOBAL bool | ||||
| IRC_OPER( CLIENT *Client, REQUEST *Req ) | ||||
| { | ||||
| 	int i; | ||||
| 	unsigned int i; | ||||
|  | ||||
| 	assert( Client != NULL ); | ||||
| 	assert( Req != NULL ); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Florian Westphal
					Florian Westphal