]> granicus.if.org Git - apache/commitdiff
Mop up more than a dozen const'ness faults
authorWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 10 Jun 2010 04:42:52 +0000 (04:42 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Thu, 10 Jun 2010 04:42:52 +0000 (04:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@953216 13f79535-47bb-0310-9956-ffa450edef68

modules/lua/lua_request.c
modules/lua/lua_request.h

index c76762a975796b544b852090ceb97c6b9fd962fa..4622295b5f310f96a5b57a206e866d92d5fae38c 100644 (file)
@@ -504,7 +504,7 @@ static const struct luaL_Reg server_methods[] = {
 };
 
 
-static req_fun_t *makefun(void *fun, int type, apr_pool_t *pool)
+static req_fun_t *makefun(const void *fun, int type, apr_pool_t *pool)
 {
     req_fun_t *rft = apr_palloc(pool, sizeof(req_fun_t));
     rft->fun = fun;
index 038dad0149cfe9df79a3106839ea12921172eabc..ad272dc98edfbc1c4891d50566cb73f77d99053e 100644 (file)
@@ -33,7 +33,7 @@ AP_LUA_DECLARE(void) ap_lua_push_request(lua_State *L, request_rec *r);
 
 typedef struct
 {
-    void *fun;
+    const void *fun;
     int type;
 } req_fun_t;