X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fflist.c;h=c0c8b5f63c4c4443cb34354158cc9f369080c90f;hb=1201af682c2a7e34d4d598e62718306b885a187e;hp=2a002a5d02ecc64a2907302a490f3f9f292fc955;hpb=5f2b39344cca1086c975d47b730929d8f1904214;p=mmh diff --git a/uip/flist.c b/uip/flist.c index 2a002a5..c0c8b5f 100644 --- a/uip/flist.c +++ b/uip/flist.c @@ -118,9 +118,7 @@ main(int argc, char **argv) char **arguments; char buf[BUFSIZ]; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ @@ -151,17 +149,18 @@ main(int argc, char **argv) switch (smatch(++cp, switches)) { case AMBIGSW: ambigsw(cp, switches); - done(1); + /* sysexits.h EX_USAGE */ + exit(1); case UNKWNSW: adios(NULL, "-%s unknown", cp); case HELPSW: snprintf(buf, sizeof(buf), "%s [+folder1 [+folder2 ...]][switches]", invo_name); print_help(buf, switches, 1); - done(1); + exit(0); case VERSIONSW: print_version(invo_name); - done(1); + exit(0); case SEQSW: if (!(cp = *argp++) || *cp == '-') @@ -262,8 +261,7 @@ main(int argc, char **argv) qsort(folders, nFolders, sizeof(struct Folder), (qsort_comp) CompareFolders); PrintFolders(); - done(0); - return 1; + return 0; } /*