Satya's blog - #defines in mod_auth_any

Oct 15 2004 10:52 #defines in mod_auth_any
mod_auth_any was splattered with code like this:
#ifdef WITH_APACHE2
ap_log_rerror(APLOG_MARK, APLOG_ERR, status, r,
"error message: %s",error);
#else
ap_log_rerror(APLOG_MARK, APLOG_ERR, r,
"error message: %s",error);
#endif
I had lots of these calls, which I replaced with:
ap_log_rerror(APLOGERROR,"error message: %s",error);
and:
#ifdef WITH_APACHE2
#define APLOG_MARK, APLOG_ERR, status, r,
#else
#define APLOG_MARK, APLOG_ERR, r,
#endif
Much cleaner!