]> diplodocus.org Git - nmh/blobdiff - uip/prompter.c
Fix warning in getaddrinfo() call.
[nmh] / uip / prompter.c
index 79e0eb790b7f5541bcdb362606fc551488197309..35f6860a4ac49536a06f085991d56daf24b09294 100644 (file)
@@ -3,6 +3,10 @@
  * prompter.c -- simple prompting editor front-end
  *
  * $Id$
+ *
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
@@ -60,7 +64,6 @@ static struct swit switches[] = {
     { NULL, 0 }
 };
 
-extern int errno;
 
 #ifdef HAVE_TERMIOS_H
 static struct termios tio;
@@ -397,7 +400,8 @@ no_body:
     unlink (tmpfil);
 
     context_save ();   /* save the context file */
-    return done (0);
+    done (0);
+    return 1;
 }