]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/uxpterm.c
Cross-reference all the host key docs.
[PuTTY.git] / unix / uxpterm.c
index 1f4f20c2aaf363c32a1e2ec4e24d6649ccf1518c..0b848bc721f8eddeae15e63b4e20c6271c636c34 100644 (file)
@@ -33,7 +33,7 @@ void cleanup_exit(int code)
     exit(code);
 }
 
-int process_nonoption_arg(char *arg, Conf *conf, int *allow_launch)
+int process_nonoption_arg(const char *arg, Conf *conf, int *allow_launch)
 {
     return 0;                          /* pterm doesn't have any. */
 }
@@ -43,18 +43,13 @@ char *make_default_wintitle(char *hostname)
     return dupstr("pterm");
 }
 
-int main(int argc, char **argv)
+void setup(int single)
 {
-    extern int pt_main(int argc, char **argv);
     extern void pty_pre_init(void);    /* declared in pty.c */
-    int ret;
 
     cmdline_tooltype = TOOLTYPE_NONNETWORK;
     default_protocol = -1;
 
-    pty_pre_init();
-
-    ret = pt_main(argc, argv);
-    cleanup_exit(ret);
-    return ret;             /* not reached, but placates optimisers */
+    if (single)
+        pty_pre_init();
 }