settings: disallow modifying the content of a 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
name.

Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
Peter Bigot 2020-07-20 07:03:17 -05:00 committed by Anas Nashif
commit 0d480e78f8

View file

@ -63,7 +63,7 @@ typedef ssize_t (*settings_read_cb)(void *cb_arg, void *data, size_t len);
*/ */
struct settings_handler { struct settings_handler {
char *name; const char *name;
/**< Name of subtree. */ /**< Name of subtree. */
int (*h_get)(const char *key, char *val, int val_len_max); int (*h_get)(const char *key, char *val, int val_len_max);