From 8933c7db509abeaf46770ad4e2cc83787c7e2d21 Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Sun, 26 Jul 2020 05:25:58 -0500 Subject: [PATCH] settings: disallow modifying the content of a static subtree name There may be value in being able to rename a subtree, but there is no identified need to be able modify the text of an assigned subtree. Signed-off-by: Peter A. Bigot --- include/settings/settings.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/settings/settings.h b/include/settings/settings.h index c5892d8ba78..ef570821041 100644 --- a/include/settings/settings.h +++ b/include/settings/settings.h @@ -129,7 +129,7 @@ struct settings_handler { */ struct settings_handler_static { - char *name; + const char *name; /**< Name of subtree. */ int (*h_get)(const char *key, char *val, int val_len_max);