@@ -180,7 +180,6 @@ apr_status_t ap_http_in_filter(ap_filter_t *f, apr_bucket_brigade *bb_out,
180180 int is_eos = 0 ;
181181 apr_bucket_brigade * bb_in ;
182182 apr_bucket * after ;
183- apr_status_t rv ;
184183
185184 bb_in = modsecGetBodyBrigade (f -> r );
186185
@@ -191,7 +190,7 @@ apr_status_t ap_http_in_filter(ap_filter_t *f, apr_bucket_brigade *bb_out,
191190 APR_BRIGADE_INSERT_TAIL (bb_in , e );
192191 }
193192
194- rv = apr_brigade_partition (bb_in , readbytes , & after );
193+ apr_status_t rv = apr_brigade_partition (bb_in , readbytes , & after );
195194 if (rv != APR_SUCCESS && rv != APR_INCOMPLETE ) {
196195 return rv ;
197196 }
@@ -278,15 +277,15 @@ const char *modsecProcessConfig(directory_config *config, const char *file, cons
278277
279278 if (dir [li ] != '/' && dir [li ] != '\\' )
280279#ifdef WIN32
281- file = apr_pstrcat (config -> mp , dir , "\\" , file , NULL );
280+ file = apr_pstrcat (config -> mp , dir , "\\" , file , ( char * ) NULL );
282281#else
283- file = apr_pstrcat (config -> mp , dir , "/" , file , NULL );
282+ file = apr_pstrcat (config -> mp , dir , "/" , file , ( char * ) NULL );
284283#endif
285284 else
286- file = apr_pstrcat (config -> mp , dir , file , NULL );
285+ file = apr_pstrcat (config -> mp , dir , file , ( char * ) NULL );
287286 }
288287 else if (APR_EBADPATH == status ) {
289- return apr_pstrcat (config -> mp , "Config file has a bad path, " , file , NULL );
288+ return apr_pstrcat (config -> mp , "Config file has a bad path, " , file , ( char * ) NULL );
290289 }
291290
292291 apr_pool_create (& ptemp , config -> mp );
@@ -403,7 +402,7 @@ request_rec *modsecNewRequest(conn_rec *connection, directory_config *config)
403402
404403static modsec_rec * retrieve_msr (request_rec * r ) {
405404 modsec_rec * msr = NULL ;
406- request_rec * rx = NULL ;
405+ const request_rec * rx = NULL ;
407406
408407 /* Look in the current request first. */
409408 msr = (modsec_rec * )apr_table_get (r -> notes , NOTE_MSR );
0 commit comments