X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/eed1bea439a5e3c62958fa1e524d527c4a2fb85d..986abcee996d486db0b9c753974f3cb0eac2e9b2:/uip/install-mh.c?ds=inline diff --git a/uip/install-mh.c b/uip/install-mh.c index 3a1fa2a6..b1184899 100644 --- a/uip/install-mh.c +++ b/uip/install-mh.c @@ -41,7 +41,7 @@ main (int argc, char **argv) FILE *in, *out; int check; - if (nmh_init(argv[0], 0 /* use context_foil() */ )) { return 1; } + if (nmh_init(argv[0], false, false)) { return 1; } arguments = getarguments (invo_name, argc, argv, 0); argp = arguments; @@ -55,7 +55,7 @@ main (int argc, char **argv) ambigsw (dp, switches); done (1); case UNKWNSW: - adios (NULL, "-%s unknown\n", dp); + die("-%s unknown\n", dp); case HELPSW: snprintf (buf, sizeof(buf), "%s [switches]", invo_name); @@ -74,7 +74,7 @@ main (int argc, char **argv) continue; } } else { - adios (NULL, "%s is invalid argument", dp); + die("%s is invalid argument", dp); } } @@ -85,7 +85,7 @@ main (int argc, char **argv) if ((mypath = getenv("HOME")) == NULL) { if ((pw = getpwuid(getuid())) == NULL || *pw->pw_dir == '\0') - adios(NULL, "cannot determine your home directory"); + die("cannot determine your home directory"); mypath = pw->pw_dir; } @@ -111,8 +111,8 @@ main (int argc, char **argv) if (check) done(0); if (autof) - adios (NULL, "invocation error"); - adios (NULL, "You already have an nmh profile, use an editor to modify it"); + die("invocation error"); + die("You already have an nmh profile, use an editor to modify it"); } if (check) done(1); @@ -168,7 +168,7 @@ query: cp = concat ("\"", pathname, "\" doesn't exist; Create it? ", NULL); if (autof || read_switch (cp, anoyes)) if (makedir (pathname) == 0) - adios (NULL, "unable to create %s", pathname); + die("unable to create %s", pathname); } else { puts("[Using existing directory]"); }