From e0f8081fcdebdcc1ad787b79d018774c5edc0fff Mon Sep 17 00:00:00 2001 From: Nishi Date: Thu, 17 Oct 2024 10:30:28 +0000 Subject: [PATCH] use saner number git-svn-id: file:///raid/svn-personal/tewi/trunk@384 8739d7e6-ffea-ec47-b151-bdff447c6205 --- Server/server.c | 2 +- Server/tw_config.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Server/server.c b/Server/server.c index b89c7c9..172059f 100644 --- a/Server/server.c +++ b/Server/server.c @@ -1013,7 +1013,7 @@ void tw_server_loop(void) { fd_set fdset; struct timeval tv; #endif -#if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__NETWARE__)) +#if defined(__MINGW32__) || defined(__HAIKU__) || defined(_MSC_VER) || defined(__BORLANDC__) || (defined(__WATCOMC__) && !defined(__NETWARE__) && !defined(__DOS__)) struct thread_entry threads[2048]; for(i = 0; i < sizeof(threads) / sizeof(threads[0]); i++) { threads[i].used = false; diff --git a/Server/tw_config.h b/Server/tw_config.h index f1f3dcb..b7e8c26 100644 --- a/Server/tw_config.h +++ b/Server/tw_config.h @@ -54,12 +54,12 @@ struct sockaddr_in { #define SOCKADDR struct sockaddr_in6 #endif -#define MAX_PORTS 1024 -#define MAX_VHOSTS 1024 -#define MAX_MODULES 1024 -#define MAX_DIRS 1024 +#define MAX_PORTS 128 +#define MAX_VHOSTS 128 +#define MAX_MODULES 128 +#define MAX_DIRS 128 #define MAX_MIME 4096 -#define MAX_ICON 1024 +#define MAX_ICON 128 #define MAX_INDEX 32 #define MAX_README 8 -- 2.43.0