]> granicus.if.org Git - apache/commitdiff
axe the unnecessary AP_MPM_HARD_LIMITS_FILE
authorJeff Trawick <trawick@apache.org>
Thu, 26 Mar 2009 15:03:57 +0000 (15:03 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 26 Mar 2009 15:03:57 +0000 (15:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@758671 13f79535-47bb-0310-9956-ffa450edef68

include/mpm_common.h
server/mpm/beos/beos.c
server/mpm/netware/mpm_netware.c

index 506e92c146470ce62be2ab8f29277b0246bd2a2f..f4f68340a5e3c5778869b0400b753a03f9e6edc4 100644 (file)
@@ -193,8 +193,6 @@ AP_DECLARE(uid_t) ap_uname2id(const char *name);
 AP_DECLARE(gid_t) ap_gname2id(const char *name);
 #endif
 
-#define AP_MPM_HARD_LIMITS_FILE APACHE_MPM_DIR "/mpm_default.h"
-
 typedef struct ap_pod_t ap_pod_t;
 
 struct ap_pod_t {
index 248be2aed958dba32badda88e185a6171f11066c..d6b554e1aff3b7afcae97a8eb53c54b7e886baf3 100644 (file)
@@ -54,6 +54,8 @@
 #include "apr_thread_mutex.h"
 #include "apr_poll.h"
 
+#define MPM_HARD_LIMITS_FILE APACHE_MPM_DIR "/mpm_default.h"
+
 extern int _kset_fd_limit_(int num);
 
 /* Limit on the total --- clients will be locked out if more servers than
@@ -1105,7 +1107,7 @@ static int beos_check_config(apr_pool_t *pconf, apr_pool_t *plog,
                          " To increase, please see the HARD_THREAD_LIMIT"
                          "define in");
             ap_log_error(APLOG_MARK, APLOG_WARNING | APLOG_STARTUP, 0, NULL,
-                         " server/mpm/beos%s.", AP_MPM_HARD_LIMITS_FILE);
+                         " server/mpm/beos%s.", MPM_HARD_LIMITS_FILE);
         } else {
             ap_log_error(APLOG_MARK, APLOG_WARNING, 0, s,
                          "MaxClients of %d exceeds compile-time limit "
index 421e631dea469256c4239aa64cb58bde95d430c6..9d16fe900b68270204e0466ac658beb5e990fe1a 100644 (file)
 #define WORKER_READY        SERVER_READY
 #define WORKER_IDLE_KILL    SERVER_IDLE_KILL
 
+#define MPM_HARD_LIMITS_FILE APACHE_MPM_DIR "/mpm_default.h"
+
 /* config globals */
 
 int ap_threads_per_child=0;         /* Worker threads per child */
@@ -1020,7 +1022,7 @@ static int netware_check_config(apr_pool_t *p, apr_pool_t *plog,
                          " To increase, please see the HARD_THREAD_LIMIT"
                          "define in");
             ap_log_error(APLOG_MARK, APLOG_WARNING | APLOG_STARTUP, 0, NULL,
-                         " server/mpm/netware%s.", AP_MPM_HARD_LIMITS_FILE);
+                         " server/mpm/netware%s.", MPM_HARD_LIMITS_FILE);
         } else {
             ap_log_error(APLOG_MARK, APLOG_WARNING, 0, s,
                          "MaxThreads of %d exceeds compile-time limit "