diff options
Diffstat (limited to 'test/test_vidputs.c')
| -rw-r--r-- | test/test_vidputs.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/test/test_vidputs.c b/test/test_vidputs.c index 31dc9da4da0f..aba0e34476f7 100644 --- a/test/test_vidputs.c +++ b/test/test_vidputs.c @@ -1,5 +1,5 @@ /**************************************************************************** - * Copyright 2020-2021,2022 Thomas E. Dickey * + * Copyright 2020-2024,2025 Thomas E. Dickey * * Copyright 2013-2014,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * @@ -27,7 +27,7 @@ * authorization. * ****************************************************************************/ /* - * $Id: test_vidputs.c,v 1.15 2022/12/10 23:23:27 tom Exp $ + * $Id: test_vidputs.c,v 1.18 2025/07/05 15:22:23 tom Exp $ * * Demonstrate the vidputs and vidattr functions. * Thomas Dickey - 2013/01/12 @@ -51,7 +51,7 @@ TPUTS_PROTO(outc, c) } static bool -outs(const char *s) +outs(NCURSES_CONST char *s) { if (VALID_STRING(s)) { tputs(s, 1, outc); @@ -63,7 +63,7 @@ outs(const char *s) static void cleanup(void) { - if (cur_term != 0) { + if (cur_term != NULL) { outs(exit_attribute_mode); if (!outs(orig_colors)) outs(orig_pair); @@ -134,11 +134,8 @@ main(int argc, char *argv[]) case 'p': p_opt = TRUE; break; - case OPTS_VERSION: - show_version(argv); - ExitProgram(EXIT_SUCCESS); default: - usage(ch == OPTS_USAGE); + CASE_COMMON; /* NOTREACHED */ } } |
