From c2d533af3b4f73ba7b2d84f410ceafa62eb7787b Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Thu, 10 Oct 2024 20:18:19 +0100 Subject: [PATCH] windows/windCmdNR.c: Lookup() constify call-site (extern data) --- windows/windCmdNR.c | 4 ++-- windows/windInt.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/windows/windCmdNR.c b/windows/windCmdNR.c index b550bd2e..a9a33cb0 100644 --- a/windows/windCmdNR.c +++ b/windows/windCmdNR.c @@ -168,7 +168,7 @@ windPauseCmd(w, cmd) } -char *butTable[] = +const char * const butTable[] = { "left", "middle", @@ -176,7 +176,7 @@ char *butTable[] = 0 }; -char *actTable[] = +const char * const actTable[] = { "down", "up", diff --git a/windows/windInt.h b/windows/windInt.h index 0070089e..002b62bb 100644 --- a/windows/windInt.h +++ b/windows/windInt.h @@ -45,8 +45,8 @@ typedef struct WIND_S3 { extern MagWindow *windTopWindow; extern MagWindow *windBottomWindow; extern clientRec *windFirstClientRec; -extern char *butTable[]; -extern char *actTable[]; +extern const char * const butTable[]; +extern const char * const actTable[]; extern bool windPrintCommands; /* ----------------- procedures ----------------- */