X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftoe.c;h=e3749b2f9e9e6950d83543ce8f1381c5c60a72fb;hp=2e67bd507ba4ab6f293e572b07d3f6d7e00adae0;hb=772f879d17117c5b766022f28099e341ebea825b;hpb=c6abbc3dd08d8a749098dc1674ce6ec65d844e86 diff --git a/progs/toe.c b/progs/toe.c index 2e67bd50..e3749b2f 100644 --- a/progs/toe.c +++ b/progs/toe.c @@ -46,7 +46,7 @@ #include #endif -MODULE_ID("$Id: toe.c,v 1.42 2007/01/21 01:09:07 tom Exp $") +MODULE_ID("$Id: toe.c,v 1.44 2007/07/21 17:45:59 tom Exp $") #define isDotname(name) (!strcmp(name, ".") || !strcmp(name, "..")) @@ -60,8 +60,7 @@ ExitProgram(int code) { _nc_free_entries(_nc_head); _nc_leaks_dump_entry(); - _nc_leaks_tic(); - _nc_free_and_exit(code); + _nc_free_tic(code); } #endif @@ -327,7 +326,7 @@ main(int argc, char *argv[]) _nc_progname = _nc_rootname(argv[0]); - while ((this_opt = getopt(argc, argv, "0123456789ahuvUV")) != EOF) { + while ((this_opt = getopt(argc, argv, "0123456789ahuvUV")) != -1) { /* handle optional parameter */ if (isdigit(this_opt)) { switch (last_opt) {