summaryrefslogtreecommitdiff
path: root/test/redraw.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/redraw.c')
-rw-r--r--test/redraw.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/test/redraw.c b/test/redraw.c
index 749f790b3fd3..ef1d43ecfcb6 100644
--- a/test/redraw.c
+++ b/test/redraw.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright 2020-2021,2022 Thomas E. Dickey *
+ * Copyright 2020-2024,2025 Thomas E. Dickey *
* Copyright 2006-2012,2017 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -27,7 +27,7 @@
* authorization. *
****************************************************************************/
/*
- * $Id: redraw.c,v 1.17 2022/12/10 22:28:50 tom Exp $
+ * $Id: redraw.c,v 1.21 2025/07/05 15:11:35 tom Exp $
*
* Demonstrate the redrawwin() and wredrawln() functions.
* Thomas Dickey - 2006/11/4
@@ -61,7 +61,7 @@ trash(int beg_x, int max_x, int cur_x)
static void
test_redraw(WINDOW *win)
{
- static const char *help[] =
+ static NCURSES_CONST char *help[] =
{
"Commands:",
" ^Q/ESC/q - quit",
@@ -76,7 +76,7 @@ test_redraw(WINDOW *win)
"",
"Other control characters are added to the screen in printable form.",
"Other printable characters are added to the screen as is.",
- 0
+ NULL
};
WINDOW *win1;
@@ -85,7 +85,7 @@ test_redraw(WINDOW *win)
int max_y, max_x;
int beg_y, beg_x;
- assert(win != 0);
+ assert(win != NULL);
scrollok(win, TRUE);
keypad(win, TRUE);
@@ -224,11 +224,8 @@ main(int argc, char *argv[])
case 'n':
no_init = TRUE;
break;
- case OPTS_VERSION:
- show_version(argv);
- ExitProgram(EXIT_SUCCESS);
default:
- usage(ch == OPTS_USAGE);
+ CASE_COMMON;
/* NOTREACHED */
}
}