#include "portab.h"
-static char UNUSED id[] = "$Id: conf.c,v 1.88 2005/10/11 19:29:23 alex Exp $";
+static char UNUSED id[] = "$Id: conf.c,v 1.91 2006/05/10 21:24:01 alex Exp $";
#include "imp.h"
#include <assert.h>
static void
ports_puts(array *a)
{
- unsigned int len;
+ size_t len;
UINT16 *ports;
len = array_length(a, sizeof(UINT16));
if (len--) {
puts( "[SERVER]" );
printf( " Name = %s\n", Conf_Server[i].name );
printf( " Host = %s\n", Conf_Server[i].host );
- printf( " Port = %d\n", Conf_Server[i].port );
+ printf( " Port = %u\n", (unsigned int)Conf_Server[i].port );
printf( " MyPassword = %s\n", Conf_Server[i].pwd_in );
printf( " PeerPassword = %s\n", Conf_Server[i].pwd_out );
printf( " Group = %d\n\n", Conf_Server[i].group );
Config_Error( LOG_WARNING, "%s, line %d: Value of \"%s\" too long!", NGIRCd_ConfFile, Line, Item );
}
+
static void
Config_Error_NaN( const int Line, const char *Item )
{
NGIRCd_ConfFile, Line, Item );
}
+
#ifdef PROTOTYPES
static void Config_Error( const int Level, const char *Format, ... )
#else
if( NGIRCd_Passive ) Server->flags = CONF_SFLAG_DISABLED;
+ Resolve_Init(&Server->res_stat);
Server->conn_id = NONE;
} /* Init_Server_Struct */