X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=blobdiff_plain;f=errlog.c;h=8b12a436ef36b4e889afca2a2ee78e4db64e84f9;hp=05a2c82e2bf189790c0e13f026f60af7d2222fca;hb=bbf03939e49397937cc8b10943c19a3c8ce26b0c;hpb=251baeb8f9cfe5521292317bbec20e238aabfd54 diff --git a/errlog.c b/errlog.c index 05a2c82e..8b12a436 100644 --- a/errlog.c +++ b/errlog.c @@ -533,15 +533,7 @@ static inline size_t get_clf_timestamp(char *buffer, size_t buffer_size) int tz_length = 0; time (&now); -#ifdef HAVE_GMTIME_R - gmt = *gmtime_r(&now, &gmt); -#elif defined(MUTEX_LOCKS_AVAILABLE) - privoxy_mutex_lock(&gmtime_mutex); - gmt = *gmtime(&now); - privoxy_mutex_unlock(&gmtime_mutex); -#else - gmt = *gmtime(&now); -#endif + gmt = *privoxy_gmtime_r(&now, &gmt); #ifdef HAVE_LOCALTIME_R tm_now = localtime_r(&now, &dummy); #elif defined(MUTEX_LOCKS_AVAILABLE)