Cope with NULL labels in every control where it makes sense, and assert that
[sgt/putty] / unix / ptermm.c
index 4765c54..128f310 100644 (file)
@@ -3,6 +3,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 
 #include "putty.h"
 
@@ -16,11 +17,33 @@ int cfgbox(Config *cfg)
     return 1;                         /* no-op in pterm */
 }
 
+void fatal_message_box(void *window, char *msg)
+{
+    /* also a no-op in pterm */
+}
+
+void cleanup_exit(int code)
+{
+    exit(code);
+}
+
+int process_nonoption_arg(char *arg, Config *cfg)
+{
+    return 0;                          /* pterm doesn't have any. */
+}
+
+char *make_default_wintitle(char *hostname)
+{
+    return dupstr("pterm");
+}
+
 int main(int argc, char **argv)
 {
     extern int pt_main(int argc, char **argv);
     extern void pty_pre_init(void);    /* declared in pty.c */
 
+    cmdline_tooltype = TOOLTYPE_NONNETWORK;
+
     pty_pre_init();
 
     return pt_main(argc, argv);