]> diplodocus.org Git - nmh/blobdiff - uip/ap.c
Separated out list of programs that are required to build from a
[nmh] / uip / ap.c
index f0b0baa..c8cf4b2 100644 (file)
--- a/uip/ap.c
+++ b/uip/ap.c
@@ -53,13 +53,7 @@ main (int argc, char **argv)
     char buf[BUFSIZ], **argp;
     char **arguments, *addrs[NADDRS];
 
-#ifdef LOCALE
-    setlocale(LC_ALL, "");
-#endif
-    invo_name = r1bindex (argv[0], '/');
-
-    /* read user profile/context */
-    context_read();
+    if (nmh_init(argv[0], 1)) { return 1; }
 
     mts_init (invo_name);
     arguments = getarguments (invo_name, argc, argv, 1);