X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fhashtest.c;h=9a3300b26b9b64fda5d90e6212f07ef7deafcd62;hp=658681540fd19c7075e3d368e6ece49978920bd2;hb=119b5a6788c26bf7dcc99fcfd54e072946352a93;hpb=5e1e572b71ae31a6071daa24e2460a68a6f1003c diff --git a/test/hashtest.c b/test/hashtest.c index 65868154..9a3300b2 100644 --- a/test/hashtest.c +++ b/test/hashtest.c @@ -30,7 +30,7 @@ * * Generate timing statistics for vertical-motion optimization. * - * $Id: hashtest.c,v 1.33 2017/04/15 14:13:40 tom Exp $ + * $Id: hashtest.c,v 1.34 2017/09/30 15:42:53 tom Exp $ */ #include @@ -225,9 +225,7 @@ main(int argc, char *argv[]) trace(TRACE_TIMES); #endif - CATCHALL(finish); /* arrange interrupts to terminate */ - - (void) initscr(); /* initialize the curses library */ + InitAndCatch(initscr(), finish); keypad(stdscr, TRUE); /* enable keyboard mapping */ (void) nonl(); /* tell curses not to do NL->CR/NL on output */ (void) cbreak(); /* take input chars one at a time, no wait for \n */