]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Design error; main.c is not part of the libhttpd, you can't forward
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 21 Jan 2010 06:31:47 +0000 (06:31 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 21 Jan 2010 06:31:47 +0000 (06:31 +0000)
referrence storage like this.  Move the variable allocation into the
ap_ library module.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@901557 13f79535-47bb-0310-9956-ffa450edef68

server/core.c
server/main.c

index 239c7840f9f0bd103db4131e0a3e8db5198d416f..5f041a266c3795fe7254c2560d5b3894439e6c5f 100644 (file)
@@ -94,6 +94,9 @@ AP_DECLARE_DATA ap_filter_rec_t *ap_core_output_filter_handle;
 AP_DECLARE_DATA ap_filter_rec_t *ap_content_length_filter_handle;
 AP_DECLARE_DATA ap_filter_rec_t *ap_core_input_filter_handle;
 
+/* Provide ap_document_root_check storage and default value = true */
+AP_DECLARE_DATA int ap_document_root_check = 1;
+
 /* magic pointer for ErrorDocument xxx "default" */
 static char errordocument_default;
 
index 72c4158011cd7f9c8446d70aa42fdbe9c6010ca2..d80ec62ade31477897cf2960db96c005d36e60d8 100644 (file)
@@ -440,9 +440,6 @@ static void usage(process_rec *process)
     destroy_and_exit_process(process, 1);
 }
 
-/* Set ap_document_root_check to default value: true */
-AP_DECLARE_DATA int ap_document_root_check = 1;
-
 int main(int argc, const char * const argv[])
 {
     char c;