Mod Cplusplus CVS committal
Author : gr84b8
Project : mod_cplusplus
Module : include
Dir : mod_cplusplus/include
Modified Files:
cpp_request.h
Log Message:
constify custom response method and cast the string when calling the apache function for now, should make the apache function take in a const. (Submitted by: kurtb149 Kurt M. Brown)
===================================================================
RCS file: /cvsroot/modcplusplus/mod_cplusplus/include/cpp_request.h,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -3 -r1.4 -r1.5
--- cpp_request.h 2001/11/12 16:06:48 1.4
+++ cpp_request.h 2001/11/19 05:37:49 1.5
@@ -101,8 +101,8 @@
const char *document_root() { return ap_document_root(mRequest); }
const char *get_remote_logname() { return ap_get_remote_logname(mRequest); }
const char *get_server_name() { return ap_get_server_name(mRequest); }
- void custom_response(int status, char *string)
- { return ap_custom_response(mRequest, status, string); }
+ void custom_response(int status, const char *str)
+ { return ap_custom_response(mRequest, status, (char *)str); }
void internal_redirect(const char *new_uri)
{ return ap_internal_redirect(new_uri, mRequest); }
|