X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/397deef44d1f8d92b781e7d9af6f0f256eccbe73..ea855e72d026c72658d43f993fc62cfcf2de2ca3:/uip/whom.c diff --git a/uip/whom.c b/uip/whom.c index eca3946d..2a36025a 100644 --- a/uip/whom.c +++ b/uip/whom.c @@ -63,13 +63,7 @@ main (int argc, char **argv) char *msg = NULL, **ap, **argp, backup[BUFSIZ]; char buf[BUFSIZ], **arguments, *vec[MAXARGS]; -#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; @@ -202,7 +196,7 @@ main (int argc, char **argv) status = pidwait(child_id, OK); - unlink (msg); + (void) m_unlink (msg); if (rename (backup, msg) == NOTOK) adios (msg, "unable to rename %s to", backup); done (status);