aboutsummaryrefslogtreecommitdiff
path: root/test/blue.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/blue.c')
-rw-r--r--test/blue.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/test/blue.c b/test/blue.c
index 90f240b62634..f7e563698126 100644
--- a/test/blue.c
+++ b/test/blue.c
@@ -1,5 +1,5 @@
/****************************************************************************
- * Copyright 2019-2021,2022 Thomas E. Dickey *
+ * Copyright 2019-2024,2025 Thomas E. Dickey *
* Copyright 1998-2016,2017 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
@@ -37,7 +37,7 @@
*****************************************************************************/
/*
- * $Id: blue.c,v 1.55 2022/12/10 23:31:31 tom Exp $
+ * $Id: blue.c,v 1.58 2025/07/05 15:21:56 tom Exp $
*/
#include <test.priv.h>
@@ -437,7 +437,7 @@ game_finished(int deal)
static void
use_pc_display(void)
{
- char *check = nl_langinfo(CODESET);
+ const char *check = nl_langinfo(CODESET);
if (!strcmp(check, "UTF-8")) {
#if USE_WIDEC_SUPPORT
suits = uglyphs;
@@ -448,13 +448,13 @@ use_pc_display(void)
!strcmp(check, "CP437") ||
!strcmp(check, "IBM850") ||
!strcmp(check, "CP850")) {
- char *smacs = tigetstr("smacs");
- char *smpch = tigetstr("smpch");
+ const char *smacs = tigetstr("smacs");
+ const char *smpch = tigetstr("smpch");
/*
* The ncurses library makes this check to decide whether to allow
* the alternate character set for the (normally) nonprinting codes.
*/
- if (smacs != 0 && smpch != 0 && !strcmp(smacs, smpch)) {
+ if (smacs != NULL && smpch != NULL && !strcmp(smacs, smpch)) {
suits = glyphs;
}
}
@@ -492,11 +492,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 */
}
}