summaryrefslogtreecommitdiff
path: root/test/testscanw.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2026-01-14 13:37:49 +0100
committerBaptiste Daroussin <bapt@FreeBSD.org>2026-01-14 13:37:49 +0100
commitc5a1e08b52b2f6c05e0116d46277904b711b6bdb (patch)
treea6ad7350d1b1100356ca59616d22c51dd29743eb /test/testscanw.c
parent24fa7a5107c5b75d1c197accf0305be64bc72882 (diff)
Vendor import ncurses 6.6vendor/ncurses/6.6vendor/ncurses
Diffstat (limited to 'test/testscanw.c')
-rw-r--r--test/testscanw.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/testscanw.c b/test/testscanw.c
index 415250c6edb3..cfac4547f106 100644
--- a/test/testscanw.c
+++ b/test/testscanw.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright 2019-2020,2022 Thomas E. Dickey *
+ * Copyright 2019-2024,2025 Thomas E. Dickey *
* Copyright 1998-2002,2006 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -30,7 +30,7 @@
* Date: 1997/03/17
* From: bayern@morpheus.cis.yale.edu
*
- * $Id: testscanw.c,v 1.15 2022/12/11 00:10:29 tom Exp $
+ * $Id: testscanw.c,v 1.17 2025/07/05 15:22:23 tom Exp $
*/
#include <test.priv.h>
@@ -65,11 +65,8 @@ main(int argc, char *argv[])
while ((ch = getopt(argc, argv, OPTS_COMMON)) != -1) {
switch (ch) {
- case OPTS_VERSION:
- show_version(argv);
- ExitProgram(EXIT_SUCCESS);
default:
- usage(ch == OPTS_USAGE);
+ CASE_COMMON;
/* NOTREACHED */
}
}
@@ -85,7 +82,7 @@ main(int argc, char *argv[])
curses_trace(TRACE_UPDATE | TRACE_CALLS);
#endif
while (optind < argc) {
- char *token = argv[optind++];
+ const char *token = argv[optind++];
if (isdigit(UChar(*token)))
move(atoi(token), 0);
else if (!strcmp(token, "k+"))