`ssh-default': change the /DSSH_DEFAULT flag to a /DTELNET_DEFAULT one
[u/mdw/putty] / putty.h
diff --git a/putty.h b/putty.h
index 12944ed..28320de 100644 (file)
--- a/putty.h
+++ b/putty.h
@@ -371,9 +371,10 @@ struct config_tag {
 };
 
 /*
- * You can compile with -DSSH_DEFAULT to have ssh by default.
+ * You can compile with -DTELNET_DEFAULT to have telnet by default
+ * (otherwise SSH is the default).
  */
-#ifndef SSH_DEFAULT
+#ifdef TELNET_DEFAULT
 #define DEFAULT_PROTOCOL PROT_TELNET
 #define DEFAULT_PORT 23
 #else
@@ -493,8 +494,8 @@ void registry_cleanup(void);
  * which I can reliably set aside to indicate `nil'. The string
  * function is perfectly all right returning NULL, of course.)
  */
-char *platform_default_s(char *name);
-int platform_default_i(char *name, int def);
+char *platform_default_s(const char *name);
+int platform_default_i(const char *name, int def);
 
 /*
  * Exports from terminal.c.