]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - macosx/osxdlg.m
Giant const-correctness patch of doom!
[PuTTY.git] / macosx / osxdlg.m
index 094c9555cc0002039cedf238b5dfe08fc2daf3c5..84a761fe68e0ea873c4c6c48b38abedf51aa7c62 100644 (file)
     ctrlbox = ctrl_new_box();
     setup_config_box(ctrlbox, FALSE /*midsession*/, aCfg.protocol,
                     0 /* protcfginfo */);
-    unix_setup_config_box(ctrlbox, FALSE /*midsession*/);
+    unix_setup_config_box(ctrlbox, FALSE /*midsession*/, aCfg.protocol);
 
     cfg = aCfg;                               /* structure copy */
 
@@ -410,8 +410,8 @@ static void verify_ssh_host_key_callback(void *ctx, int result)
     sfree(state);
 }
 
-int verify_ssh_host_key(void *frontend, char *host, int port, char *keytype,
-                        char *keystr, char *fingerprint,
+int verify_ssh_host_key(void *frontend, char *host, int port,
+                        const char *keytype, char *keystr, char *fingerprint,
                         void (*callback)(void *ctx, int result), void *ctx)
 {
     static const char absenttxt[] =
@@ -490,7 +490,7 @@ static void connection_fatal_callback(void *ctx, int result)
     [win endSession:FALSE];
 }
 
-void connection_fatal(void *frontend, char *p, ...)
+void connection_fatal(void *frontend, const char *p, ...)
 {
     SessionWindow *win = (SessionWindow *)frontend;
     va_list ap;