From 8f7dd9cac695bd2b5382755ed082c5ba67f8e171 Mon Sep 17 00:00:00 2001 From: stefanrueger Date: Thu, 5 Jun 2025 11:28:09 +0200 Subject: [PATCH] Make command table static read only --- src/term.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/term.c b/src/term.c index c55b84e6..64c527db 100644 --- a/src/term.c +++ b/src/term.c @@ -93,7 +93,7 @@ static int cmd_quell(const PROGRAMMER *pgm, const AVRPART *p, int argc, const ch #define _fo(x) offsetof(PROGRAMMER, x) // List of commands; don't add a command starting with e: main.c relies on e expanding to erase -struct command cmd[] = { +static const struct command cmd[] = { {"dump", cmd_dump, _fo(read_byte_cached), "display a memory section as hex dump"}, {"read", cmd_dump, _fo(read_byte_cached), "alias for dump"}, {"disasm", cmd_disasm, _fo(read_byte_cached), "disassemble a memory section"},