X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/c703902741e0f7ce55f87e48ef0d00901195f1bc..7559e1ebf:/uip/conflict.c?ds=sidebyside diff --git a/uip/conflict.c b/uip/conflict.c index d8c45669..4c140022 100644 --- a/uip/conflict.c +++ b/uip/conflict.c @@ -68,14 +68,7 @@ main (int argc, char **argv) char *cp, **argp, **arguments; char buf[BUFSIZ], *akv[50]; -#ifdef LOCALE - setlocale(LC_ALL, ""); -#endif - invo_name = r1bindex (argv[0], '/'); - - /* foil search of user profile/context */ - if (context_foil (NULL) == -1) - done (1); + if (nmh_init(argv[0], 0 /* use context_foil() */)) { return 1; } mts_init (invo_name); arguments = getarguments (invo_name, argc, argv, 0); @@ -366,7 +359,7 @@ setup (void) close (fd); } execlp (mailproc, r1bindex (mailproc, '/'), - mail, "-subject", invo_name, NULL); + mail, "-subject", invo_name, (void *) NULL); adios (mailproc, "unable to exec "); default: