Colin's const-fixing Patch Of Death. Seems to build fine on Windows
[u/mdw/putty] / plink.c
diff --git a/plink.c b/plink.c
index 0f764cf..bf17f53 100644 (file)
--- a/plink.c
+++ b/plink.c
@@ -558,7 +558,7 @@ int main(int argc, char **argv)
      */
     netevent = CreateEvent(NULL, FALSE, FALSE, NULL);
     {
-       char *error;
+       const char *error;
        char *realhost;
        /* nodelay is only useful if stdin is a character device (console) */
        int nodelay = cfg.tcp_nodelay &&