[glib-networking/fix.openssl.x64.win] gtlslog.h: Use ISO-style varargs



commit 77402b649bf04ee7b205fde14d374d7e8c02d021
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Wed Jan 1 13:25:04 2020 +0800

    gtlslog.h: Use ISO-style varargs
    
    We need to use ISO-style varargs so that the code will build on
    non-GCC-style compilers.

 tls/base/gtlslog.h | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/tls/base/gtlslog.h b/tls/base/gtlslog.h
index 5501756..edd487a 100644
--- a/tls/base/gtlslog.h
+++ b/tls/base/gtlslog.h
@@ -37,21 +37,21 @@ void g_tls_log (GLogLevelFlags  level,
                 const gchar    *format,
                 ...) G_GNUC_PRINTF (6, 7);
 
-#define g_tls_log_debug(_conn, _format, _args...)   g_tls_log (G_LOG_LEVEL_DEBUG, _conn, \
-                                                               __FILE__, G_STRINGIFY (__LINE__), \
-                                                               G_STRFUNC, _format, ## _args)
+#define g_tls_log_debug(_conn, _format, ...)   g_tls_log (G_LOG_LEVEL_DEBUG, _conn, \
+                                                          __FILE__, G_STRINGIFY (__LINE__), \
+                                                          G_STRFUNC, _format, ## __VA_ARGS__)
 
 /* The following functions are for local debugging only. */
 #if 0
-#define g_tls_log_info(_conn, _format, _args...)    g_tls_log (G_LOG_LEVEL_INFO, _conn, \
-                                                               __FILE__, G_STRINGIFY (__LINE__), \
-                                                               G_STRFUNC, _format, ## _args)
-#define g_tls_log_warning(_conn, _format, _args...) g_tls_log (G_LOG_LEVEL_WARNING, _conn, \
-                                                               __FILE__, G_STRINGIFY (__LINE__), \
-                                                               G_STRFUNC, _format, ## _args)
-#define g_tls_log_error(_conn, _format, _args...)   g_tls_log (G_LOG_LEVEL_ERROR, _conn, \
-                                                               __FILE__, G_STRINGIFY (__LINE__), \
-                                                               G_STRFUNC, _format, ## _args)
+#define g_tls_log_info(_conn, _format, ...)    g_tls_log (G_LOG_LEVEL_INFO, _conn, \
+                                                          __FILE__, G_STRINGIFY (__LINE__), \
+                                                          G_STRFUNC, _format, ## __VA_ARGS__)
+#define g_tls_log_warning(_conn, _format, ...) g_tls_log (G_LOG_LEVEL_WARNING, _conn, \
+                                                          __FILE__, G_STRINGIFY (__LINE__), \
+                                                          G_STRFUNC, _format, ## __VA_ARGS__)
+#define g_tls_log_error(_conn, _format, ...)   g_tls_log (G_LOG_LEVEL_ERROR, _conn, \
+                                                          __FILE__, G_STRINGIFY (__LINE__), \
+                                                          G_STRFUNC, _format, ## __VA_ARGS__)
 #endif
 
 G_END_DECLS


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]