]> granicus.if.org Git - apache/commitdiff
change the signature of ap_custom_response() to use a
authorIan Holsman <ianh@apache.org>
Sun, 18 Nov 2001 02:57:12 +0000 (02:57 +0000)
committerIan Holsman <ianh@apache.org>
Sun, 18 Nov 2001 02:57:12 +0000 (02:57 +0000)
"const char *" instead of a "char *".

PR: 8791
Submitted by: Kurt Brown kurtb149@yahoo.com
Reviewed by: Ian Holsman

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

include/http_core.h
server/core.c

index d9bedaec6fab96b1b0b6bfb1cf8edd128b1e1d45..3c8e055ba0fbe4cb51fb09a82f4bc48f651ed02e 100644 (file)
@@ -252,9 +252,8 @@ AP_DECLARE(size_t) ap_get_limit_xml_body(const request_rec *r);
  * @param status The status for which the custom response should be used
  * @param string The custom response.  This can be a static string, a file
  *               or a URL
- * @deffunc void ap_custom_response(request_rec *r, int status, char *string)
  */
-AP_DECLARE(void) ap_custom_response(request_rec *r, int status, char *string);
+AP_DECLARE(void) ap_custom_response(request_rec *r, int status, const char *string);
 
 /**
  * Check for a definition from the server command line
index 3a9378f81b9c92680956d71cd9796829d4b3e293..2ba05b92f13339ad8a7c2d457f332c2d6bca5381 100644 (file)
@@ -943,7 +943,7 @@ static const char *set_document_root(cmd_parms *cmd, void *dummy,
     return NULL;
 }
 
-AP_DECLARE(void) ap_custom_response(request_rec *r, int status, char *string)
+AP_DECLARE(void) ap_custom_response(request_rec *r, int status, const char *string)
 {
     core_dir_config *conf = 
        ap_get_module_config(r->per_dir_config, &core_module);
@@ -3076,6 +3076,7 @@ static apr_status_t core_output_filter(ap_filter_t *f, apr_bucket_brigade *b)
                 }
             }
         }
+
     
         /* Completed iterating over the brigades, now determine if we want 
          * to buffer the brigade or send the brigade out on the network.