X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mod_auth_kerb.cvs%2F.git;a=blobdiff_plain;f=gss.c;fp=gss.c;h=cab10c3540b7bf45e858a116e4fb90b8fa088a8f;hp=9ecee1cbf68ca8b80edac958f660b7d0404b2928;hb=29326d6a19f2045521e9d8f3a3be37c3363739eb;hpb=2f64188ced9c0ad9b31bb12ea8aa453cb35f549f diff --git a/gss.c b/gss.c index 9ecee1c..cab10c3 100644 --- a/gss.c +++ b/gss.c @@ -32,8 +32,15 @@ #include "mod_auth_gssapi.h" void -gss_log(const char *file, int line, int level, int status, - const request_rec *r, const char *fmt, ...) +gss_log(const char *file, + int line, +#if AP_SERVER_MAJORVERSION_NUMBER == 2 && AP_SERVER_MINORVERSION_NUMBER == 4 + int module_index, +#endif + int level, + int status, + const request_rec *r, + const char *fmt, ...) { char errstr[1024]; va_list ap; @@ -42,7 +49,16 @@ gss_log(const char *file, int line, int level, int status, vsnprintf(errstr, sizeof(errstr), fmt, ap); va_end(ap); - ap_log_rerror(file, line, level | APLOG_NOERRNO, status, r, "%s", errstr); + ap_log_rerror(file, + line, +#if AP_SERVER_MAJORVERSION_NUMBER == 2 && AP_SERVER_MINORVERSION_NUMBER == 4 + module_index, +#endif + level | APLOG_NOERRNO, + status, + r, + "%s", + errstr); } apr_status_t