]> diplodocus.org Git - nmh/blobdiff - uip/whatnow.c
lock_file.c: close(2) file descriptor on failure, avoiding leak.
[nmh] / uip / whatnow.c
index 031ff3c8cac69a9c0c043dae2eda8eb34d4a9791..86a17f9329a9aad9755410022c40716f9931dcfa 100644 (file)
@@ -1,6 +1,4 @@
-
-/*
- * whatnow.c -- the nmh `WhatNow' shell
+/* whatnow.c -- the nmh `WhatNow' shell
  *
  * This code is Copyright (c) 2002, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -8,12 +6,13 @@
  */
 
 #include <h/mh.h>
+#include <h/utils.h>
 
 
 int
 main (int argc, char **argv)
 {
-    if (nmh_init(argv[0], 1)) { return 1; }
+    if (nmh_init(argv[0], 2)) { return 1; }
 
     return WhatNow (argc, argv);
 }