X-Git-Url: https://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=test%2Fdemo_terminfo.c;h=5a5631db7b9ad62b25197af3e746c48a089a2e5e;hp=8e6ae1ca63fdd07e89eb992b45f12f1970efef4c;hb=445bfe6a0fb691e3433d586a188be2ebe062384b;hpb=c99e3eba2cce1c3bd7fa1b4a2eb4554e52ebe264 diff --git a/test/demo_terminfo.c b/test/demo_terminfo.c index 8e6ae1ca..5a5631db 100644 --- a/test/demo_terminfo.c +++ b/test/demo_terminfo.c @@ -29,7 +29,7 @@ /* * Author: Thomas E. Dickey * - * $Id: demo_terminfo.c,v 1.39 2015/07/10 23:45:44 tom Exp $ + * $Id: demo_terminfo.c,v 1.40 2015/10/10 20:52:41 tom Exp $ * * A simple demo of the terminfo interface. */ @@ -46,6 +46,8 @@ #endif #endif +static void failed(const char *) GCC_NORETURN; + static void failed(const char *msg) { @@ -914,7 +916,7 @@ main(int argc, char *argv[]) int main(int argc GCC_UNUSED, char *argv[]GCC_UNUSED) { - printf("This program requires the terminfo functions such as tigetstr\n"); + failed("This program requires the terminfo functions such as tigetstr"); ExitProgram(EXIT_FAILURE); } #endif /* HAVE_TIGETSTR */