X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=progs%2Ftoe.c;h=6bcff07f53e30e933b1eb86c27a69fb75d8e5fa8;hp=2e67bd507ba4ab6f293e572b07d3f6d7e00adae0;hb=491a3f08b795f494ae17179338c31a11b18fd433;hpb=c6abbc3dd08d8a749098dc1674ce6ec65d844e86 diff --git a/progs/toe.c b/progs/toe.c index 2e67bd50..6bcff07f 100644 --- a/progs/toe.c +++ b/progs/toe.c @@ -40,13 +40,11 @@ #include -#include - #if USE_HASHED_DB #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.46 2007/10/13 22:26:38 tom Exp $") #define isDotname(name) (!strcmp(name, ".") || !strcmp(name, "..")) @@ -59,9 +57,7 @@ static void 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 +323,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) {