#ifdef LOCALE
setlocale(LC_ALL, "");
#endif
- invo_name = r1bindex(argv[0], '/');
+ invo_name = mhbasename(argv[0]);
arguments = getarguments(invo_name, argc, argv, 0);
argp = arguments;
** if that's not found.
*/
- if ((mypath = getenv("HOME")) == (char *)0) {
+ if ((mypath = getenv("HOME")) == NULL) {
if ((pw = getpwuid(getuid())) == (struct passwd *)0 ||
*pw->pw_dir == '\0')
adios(NULL, "cannot determine your home directory");
*/
if ((cp = getenv("MH")) && *cp != '\0')
- defpath = path(cp, TFILE);
+ defpath = getcpy(expanddir(cp));
else
defpath = concat(mypath, "/", mh_profile, NULL);
}
if (!autof && gans("Do you want help? ", anoyes)) {
- (void)printf(
- "\n"
+ printf("\n"
"Prior to using nmh, it is necessary to have a file in your login\n"
"directory (%s) named %s which contains information\n"
"to direct certain nmh operations. The only item which is required\n"
fclose(in);
}
- ctxpath = getcpy(m_maildir(context = "context"));
+ ctxpath = getcpy(toabsdir(context = "context"));
/* Initialize current folder to default */
- context_replace(pfolder, defaultfolder);
+ context_replace(curfolder, defaultfolder);
context_save();
/*