From d6096f6036173ebfe1db33489b0d4d7a43f181aa Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Fri, 26 Sep 2014 12:13:36 +0200 Subject: cleanup TSRMLS_FETCH in win32 --- win32/wsyslog.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'win32/wsyslog.c') diff --git a/win32/wsyslog.c b/win32/wsyslog.c index 75c5ef58e5..89f98e5224 100644 --- a/win32/wsyslog.c +++ b/win32/wsyslog.c @@ -61,7 +61,6 @@ void closelog(void) { - TSRMLS_FETCH(); if (PW32G(log_source)) { DeregisterEventSource(PW32G(log_source)); PW32G(log_source) = NULL; @@ -85,7 +84,6 @@ void syslog(int priority, const char *message, ...) unsigned short etype; char *tmp = NULL; DWORD evid; - TSRMLS_FETCH(); /* default event source */ if (!PW32G(log_source)) @@ -123,8 +121,6 @@ void syslog(int priority, const char *message, ...) void openlog(const char *ident, int logopt, int facility) { - TSRMLS_FETCH(); - if (PW32G(log_source)) { closelog(); } -- cgit v1.2.1 From c00424e427930a33e6d8645cc3f23fb78ed29b9f Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Wed, 15 Oct 2014 09:37:55 +0200 Subject: bring back all the TSRMLS_FETCH() stuff for better comparability with the mainstream --- win32/wsyslog.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'win32/wsyslog.c') diff --git a/win32/wsyslog.c b/win32/wsyslog.c index 89f98e5224..75c5ef58e5 100644 --- a/win32/wsyslog.c +++ b/win32/wsyslog.c @@ -61,6 +61,7 @@ void closelog(void) { + TSRMLS_FETCH(); if (PW32G(log_source)) { DeregisterEventSource(PW32G(log_source)); PW32G(log_source) = NULL; @@ -84,6 +85,7 @@ void syslog(int priority, const char *message, ...) unsigned short etype; char *tmp = NULL; DWORD evid; + TSRMLS_FETCH(); /* default event source */ if (!PW32G(log_source)) @@ -121,6 +123,8 @@ void syslog(int priority, const char *message, ...) void openlog(const char *ident, int logopt, int facility) { + TSRMLS_FETCH(); + if (PW32G(log_source)) { closelog(); } -- cgit v1.2.1 From bdeb220f48825642f84cdbf3ff23a30613c92e86 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Sat, 13 Dec 2014 23:06:14 +0100 Subject: first shot remove TSRMLS_* things --- win32/wsyslog.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'win32/wsyslog.c') diff --git a/win32/wsyslog.c b/win32/wsyslog.c index 75c5ef58e5..ff0293fd9d 100644 --- a/win32/wsyslog.c +++ b/win32/wsyslog.c @@ -61,7 +61,6 @@ void closelog(void) { - TSRMLS_FETCH(); if (PW32G(log_source)) { DeregisterEventSource(PW32G(log_source)); PW32G(log_source) = NULL; @@ -85,7 +84,6 @@ void syslog(int priority, const char *message, ...) unsigned short etype; char *tmp = NULL; DWORD evid; - TSRMLS_FETCH(); /* default event source */ if (!PW32G(log_source)) @@ -123,7 +121,6 @@ void syslog(int priority, const char *message, ...) void openlog(const char *ident, int logopt, int facility) { - TSRMLS_FETCH(); if (PW32G(log_source)) { closelog(); -- cgit v1.2.1