From c92ded99dfafb02b8cd9d0f58dac94fa3d0a8418 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 31 Jan 2025 17:18:27 +0000 Subject: [PATCH] textio: constify various data --- textio/txCommands.c | 8 ++++---- textio/txInput.c | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/textio/txCommands.c b/textio/txCommands.c index 3284c3cf..2c175342 100644 --- a/textio/txCommands.c +++ b/textio/txCommands.c @@ -814,14 +814,14 @@ void txLogCommand( TxCommand *cmd) { - static char *txButTable[] = + static const char *txButTable[] = { "left", "middle", "right", 0 }; - static char *txActTable[] = + static const char *txActTable[] = { "down", "up", @@ -829,9 +829,9 @@ txLogCommand( }; #ifdef MAGIC_WRAPPER - char *pfix = ""; + const char *pfix = ""; #else - char *pfix = ":"; + const char *pfix = ":"; #endif /* Do not do anything if there is no log file */ diff --git a/textio/txInput.c b/textio/txInput.c index dd3dc4d1..fdbc39b8 100644 --- a/textio/txInput.c +++ b/textio/txInput.c @@ -88,7 +88,7 @@ HashTable cellname_hash; static int interactive_flag; -char *magic_direction_list[] = { +const char *magic_direction_list[] = { "bottom", "down", "e", "east", "left", "n", "north", "right", "s", "south", "top", "up", "w", "west", (char *)NULL };