]> diplodocus.org Git - nmh/blobdiff - uip/whatnow.c
lock_file.c: close(2) file descriptor on failure, avoiding leak.
[nmh] / uip / whatnow.c
index 083650ed46896f1e52775d022d93207d4f9f1f40..86a17f9329a9aad9755410022c40716f9931dcfa 100644 (file)
@@ -1,18 +1,18 @@
-
-/*
- * whatnow.c -- the nmh `WhatNow' shell
+/* whatnow.c -- the nmh `WhatNow' shell
  *
- * $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>
+#include <h/utils.h>
 
 
 int
 main (int argc, char **argv)
 {
-#ifdef LOCALE
-    setlocale(LC_ALL, "");
-#endif
-    WhatNow (argc, argv);
+    if (nmh_init(argv[0], 2)) { return 1; }
+
+    return WhatNow (argc, argv);
 }