summaryrefslogtreecommitdiff
path: root/test/test_unget_wch.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_unget_wch.c')
-rw-r--r--test/test_unget_wch.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/test_unget_wch.c b/test/test_unget_wch.c
index 58085304c90c..413d23b6ba9f 100644
--- a/test/test_unget_wch.c
+++ b/test/test_unget_wch.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright 2022 Thomas E. Dickey *
+ * Copyright 2022,2025 Thomas E. Dickey *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
@@ -26,7 +26,7 @@
* authorization. *
****************************************************************************/
/*
- * $Id: test_unget_wch.c,v 1.4 2022/12/10 23:31:31 tom Exp $
+ * $Id: test_unget_wch.c,v 1.5 2025/07/05 15:21:56 tom Exp $
*
* Demonstrate the unget_wch and unget functions.
*/
@@ -62,11 +62,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 */
}
}