X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdots.c;h=f9d2ef693fc0aec70b67ecdbc58b14bf6709b23c;hp=474d8805179efbc69225a08bc515fe9fbc401d22;hb=12b49d3c56a6130feb2d39fbe2d6c1bc0838f0fa;hpb=93ed44d781ca36f55021e0ad55f1ce33de62f7ba diff --git a/test/dots.c b/test/dots.c index 474d8805..f9d2ef69 100644 --- a/test/dots.c +++ b/test/dots.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright (c) 1999-2011,2013 Free Software Foundation, Inc. * + * Copyright (c) 1999-2013,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -29,7 +29,7 @@ /* * Author: Thomas E. Dickey 1999 * - * $Id: dots.c,v 1.25 2013/09/28 22:12:09 tom Exp $ + * $Id: dots.c,v 1.26 2017/09/30 17:55:22 tom Exp $ * * A simple demo of the terminfo interface. */ @@ -107,10 +107,8 @@ main(int argc GCC_UNUSED, double c; int my_colors; - CATCHALL(onsig); - srand((unsigned) time(0)); - setupterm((char *) 0, 1, (int *) 0); + InitAndCatch(setupterm((char *) 0, 1, (int *) 0), onsig); outs(clear_screen); outs(cursor_invisible); my_colors = max_colors;