Fix all warnings when compiling with mingw64.
[oweals/tinc.git] / src / logger.c
index a1cc2073c0015760fe6879648ca16f85b2a92a26..bc20438cc83cc3f07c13ad9115b5fc1699e8a9bb 100644 (file)
@@ -85,7 +85,7 @@ void logger(int priority, const char *format, ...) {
 #ifdef HAVE_MINGW
                        {
                                char message[4096];
-                               char *messages[] = {message};
+                               const char *messages[] = {message};
                                vsnprintf(message, sizeof(message), format, ap);
                                ReportEvent(loghandle, priority, 0, 0, NULL, 1, 0, messages, NULL);
                        }