]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conf.c
made a few config options unsigned.
[ngircd-alex.git] / src / ngircd / conf.c
index 77e52cb69b571d2863d54243276130fd4956a900..ca361186d44ae4994c29d70289910b096a42c390 100644 (file)
@@ -14,7 +14,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: conf.c,v 1.77 2005/06/17 19:16:53 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 );
@@ -981,16 +981,6 @@ Validate_Config( bool Configtest )
                /* No administrative information configured! */
                Config_Error( LOG_WARNING, "No administrative information configured but required by RFC!" );
        }
-#ifdef FD_SETSIZE      
-       if(( Conf_MaxConnections > (long)FD_SETSIZE ) || ( Conf_MaxConnections < 1 ))
-       {
-               Conf_MaxConnections = (long)FD_SETSIZE;
-               Config_Error( LOG_ERR, "Setting MaxConnections to %ld, select() can't handle more file descriptors!", Conf_MaxConnections );
-       }
-#else
-       Config_Error( LOG_WARN, "Don't know how many file descriptors select() can handle on this system, don't set MaxConnections too high!" );
-#endif
-
 #ifdef DEBUG
        servers = servers_once = 0;
        for( i = 0; i < MAX_SERVERS; i++ )