From 0c565354aa4f2d5bf475197e535f36f745764d8a Mon Sep 17 00:00:00 2001 From: Stefan Rueger Date: Wed, 8 May 2024 22:23:24 +0100 Subject: [PATCH] Make two static structs read-only in developer_opts.c --- src/developer_opts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/developer_opts.c b/src/developer_opts.c index a155dfd2..d3b6d9a6 100644 --- a/src/developer_opts.c +++ b/src/developer_opts.c @@ -59,14 +59,14 @@ // - Output again with -p*/s or -c*/s (no /i) and use that for final avrdude.conf // - Remove entries from below tables -static struct { +static const struct { const char *pgmid, *var, *value; } pgminj[] = { // Add triples here, eg, {"stk500v2", "prog_modes", "PM_TPI|PM_ISP"}, {NULL, NULL, NULL}, }; -static struct { +static const struct { const char *mcu, *var, *value; } ptinj[] = { // Add triples here, eg, {"ATmega328P", "mcuid", "999"},