summaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/log.c b/src/log.c
index 1d2048a10..46f7529ab 100644
--- a/src/log.c
+++ b/src/log.c
@@ -143,10 +143,12 @@ void alog(const char *fmt, ...)
* crash. :(
*
* --nenolod
+ * Not all systems have va_copy() so macro VA_COPY on so it will work
+ * like the function does see extern.h for how -- TSL
*/
- va_copy(logargs, args);
- va_copy(consoleargs, args);
- va_copy(logchanargs, args);
+ VA_COPY(logargs, args);
+ VA_COPY(consoleargs, args);
+ VA_COPY(logchanargs, args);
time(&t);
tm = *localtime(&t);
@@ -219,9 +221,11 @@ void log_perror(const char *fmt, ...)
* crash. :(
*
* --nenolod
+ * Not all systems have va_copy() so macro VA_COPY on so it will work
+ * like the function does see extern.h for how -- TSL
*/
- va_copy(logargs, args);
- va_copy(consoleargs, args);
+ VA_COPY(logargs, args);
+ VA_COPY(consoleargs, args);
time(&t);
tm = *localtime(&t);