Author: poeml Date: Mon Jan 6 00:02:48 2014 New Revision: 97 URL: http://svn.mirrorbrain.org/viewvc/mod_asn?rev=97&view=rev Log: Adjust for API change in Apache 2.4: - use new AP_DECLARE_MODULE macro, and the pre-2.4 AP_MODULE_DECLARE_DATA if not available. Thanks Cristian Rodriguez for the patch. - check that ap_log_ functions and debugLog() are used conformant with 2.4. https://httpd.apache.org/docs/2.4/developer/new_api_2_4.html Modified: trunk/mod_asn.c Modified: trunk/mod_asn.c URL: http://svn.mirrorbrain.org/viewvc/mod_asn/trunk/mod_asn.c?rev=97&r1=96&r2=97&view=diff ============================================================================== --- trunk/mod_asn.c (original) +++ trunk/mod_asn.c Mon Jan 6 00:02:48 2014 _at_@ -100,7 +100,10 @@ apr_vsnprintf(buf, sizeof (buf), fmt, ap); va_end(ap); /* we use warn loglevel to be able to debug without - * setting the entire server into debug logging mode */ + * setting the entire server into debug logging mode. + * (Apache 2.4 got per-module loglevel configuration; so, in case that + * Apache 2.2 should no longer be supported by us in the future, we + * could remove this function */ ap_log_rerror(APLOG_MARK, APLOG_WARNING, APR_SUCCESS, _at_@ -428,7 +431,12 @@ } +#ifdef AP_DECLARE_MODULE +AP_DECLARE_MODULE(asn) = +#else +/* pre-2.4 */ module AP_MODULE_DECLARE_DATA asn_module = +#endif { STANDARD20_MODULE_STUFF, create_asn_dir_config, /* create per-directory config structures */ _______________________________________________ mirrorbrain-commits mailing list Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/ Note: To remove yourself from this list, send a mail with the content unsubscribe to the address mirrorbrain-commits-request_at_mirrorbrain.orgReceived on Sun Jan 05 2014 - 23:02:52 GMT
This archive was generated by hypermail 2.3.0 : Sun Jan 05 2014 - 23:17:04 GMT