]> diplodocus.org Git - nmh/blobdiff - uip/repl.c
fmt_scan() no longer subtracts 1 from the width. This has the effect
[nmh] / uip / repl.c
index 84374569b960aea72bcce6620e5aa0c2c39a6435..f8437288ce847b854fd9147c57f7ff9be3ae5667 100644 (file)
@@ -108,7 +108,7 @@ static char *fcc    = NULL;         /* folders to add to Fcc: header */
 /*
  * prototypes
  */
-void docc (char *, int);
+static void docc (char *, int);
 
 
 int
@@ -129,13 +129,7 @@ main (int argc, char **argv)
 
     int buildsw = 0;
 
-#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; }
 
     arguments = getarguments (invo_name, argc, argv, 1);
     argp = arguments;