Skip to content

Commit 3bd8355

Browse files
rettichschnidicarlescufi
authored andcommitted
doc: Fix settings_handler_static::h_export example
Callback takes a const data pointer. Signed-off-by: Reto Schneider <[email protected]>
1 parent 578cb13 commit 3bd8355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/services/settings/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export functionality, for example, writing to the shell console).
199199
}
200200
201201
static int foo_settings_export(int (*storage_func)(const char *name,
202-
void *value,
202+
const void *value,
203203
size_t val_len))
204204
{
205205
return storage_func("foo/bar", &foo_val, sizeof(foo_val));

0 commit comments

Comments
 (0)