]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - plink.c
First phase of porting. pterm now compiles and runs under Linux+gtk.
[PuTTY.git] / plink.c
diff --git a/plink.c b/plink.c
index ed4f134592527577ad75a5d57ee1cded5fd5f4ba..0d79a98430354c28e56c2857ec85e39159c53d8e 100644 (file)
--- a/plink.c
+++ b/plink.c
@@ -29,6 +29,17 @@ void fatalbox(char *p, ...)
     WSACleanup();
     cleanup_exit(1);
 }
+void modalfatalbox(char *p, ...)
+{
+    va_list ap;
+    fprintf(stderr, "FATAL ERROR: ");
+    va_start(ap, p);
+    vfprintf(stderr, p, ap);
+    va_end(ap);
+    fputc('\n', stderr);
+    WSACleanup();
+    cleanup_exit(1);
+}
 void connection_fatal(char *p, ...)
 {
     va_list ap;