projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
251baeb
)
get_clf_timestamp(): Use privoxy_gmtime_r()
author
Fabian Keil
<fk@fabiankeil.de>
Sun, 7 Jun 2020 17:22:10 +0000
(19:22 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Mon, 8 Jun 2020 13:34:36 +0000
(15:34 +0200)
errlog.c
patch
|
blob
|
history
diff --git
a/errlog.c
b/errlog.c
index
05a2c82
..
8b12a43
100644
(file)
--- 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)