subsys/settings: Add const modifier to the value pointer

This commit adds const modifier for value pointer in
settings_save_one function.

Signed-off-by: Radoslaw Koppel <radoslaw.koppel@nordicsemi.no>
This commit is contained in:
Radoslaw Koppel 2019-05-29 08:44:37 +02:00 committed by Anas Nashif
commit 974231ee6e
8 changed files with 26 additions and 18 deletions

View file

@ -74,7 +74,7 @@ struct settings_handler {
* User might use it to apply setting to the application.
*/
int (*h_export)(int (*export_func)(const char *name, void *val,
int (*h_export)(int (*export_func)(const char *name, const void *val,
size_t val_len));
/**< This gets called to dump all current settings items.
*
@ -139,7 +139,7 @@ int settings_save(void);
*
* @return 0 on success, non-zero on failure.
*/
int settings_save_one(const char *name, void *value, size_t val_len);
int settings_save_one(const char *name, const void *value, size_t val_len);
/**
* Delete a single serialized in persisted storage.