Colin's const-fixing Patch Of Death. Seems to build fine on Windows
[u/mdw/putty] / logging.c
index d526474..f32e9ca 100644 (file)
--- a/logging.c
+++ b/logging.c
@@ -43,7 +43,7 @@ void logtraffic(void *handle, unsigned char c, int logmode)
  * platforms. Platforms which don't have a meaningful stderr can
  * just avoid defining FLAG_STDERR.
  */
-void log_eventlog(void *handle, char *event)
+void log_eventlog(void *handle, const char *event)
 {
     struct LogContext *ctx = (struct LogContext *)handle;
     if ((flags & FLAG_STDERR) && (flags & FLAG_VERBOSE)) {