X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/294ef4a95bc276d138ca68d269adc66bf2314123..5a732c22ede9a35af8e5c77a10ddd0a4fc8e4122:/uip/mhtest.c diff --git a/uip/mhtest.c b/uip/mhtest.c index abdfdadf..38e33a84 100644 --- a/uip/mhtest.c +++ b/uip/mhtest.c @@ -59,8 +59,6 @@ extern int userrs; * This is currently needed to keep mhparse happy. * This needs to be changed. */ -pid_t xpid = 0; - int debugsw = 0; int verbosw = 0; @@ -99,15 +97,9 @@ main (int argc, char **argv) struct msgs *mp = NULL; CT ct, *ctp; - done=freects_done; - -#ifdef LOCALE - setlocale(LC_ALL, ""); -#endif - invo_name = r1bindex (argv[0], '/'); + if (nmh_init(argv[0], 1)) { return 1; } - /* read user profile/context */ - context_read(); + done=freects_done; arguments = getarguments (invo_name, argc, argv, 1); argp = arguments; @@ -349,7 +341,6 @@ static void pipeser (int i) { if (i == SIGQUIT) { - unlink ("core"); fflush (stdout); fprintf (stderr, "\n"); fflush (stderr);