]> diplodocus.org Git - nmh/blobdiff - uip/whatnow.c
Removed msh relics from scansbr.c, including a global.
[nmh] / uip / whatnow.c
index d9954264631ea78a30337635674f3108ebb5b8bd..031ff3c8cac69a9c0c043dae2eda8eb34d4a9791 100644 (file)
@@ -2,8 +2,6 @@
 /*
  * 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>
 
-/* from whatnowsbr.c */
-int WhatNow (int, char **);
-
 
 int
 main (int argc, char **argv)
 {
-#ifdef LOCALE
-    setlocale(LC_ALL, "");
-#endif
+    if (nmh_init(argv[0], 1)) { return 1; }
+
     return WhatNow (argc, argv);
 }