Skip to content

Commit 969c3e9

Browse files
anujdeshpandekartben
authored andcommitted
samples: Fix inconsistent variable naming
Similar variables were using alpha and alph as a prefix Signed-off-by: Anuj Deshpande <[email protected]>
1 parent 5043cb7 commit 969c3e9

File tree

1 file changed

+4
-4
lines changed
  • samples/subsys/settings/src

1 file changed

+4
-4
lines changed

samples/subsys/settings/src/main.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ int beta_handle_export(int (*cb)(const char *name,
4848
int beta_handle_get(const char *name, char *val, int val_len_max);
4949

5050
/* dynamic main tree handler */
51-
struct settings_handler alph_handler = {
51+
struct settings_handler alpha_handler = {
5252
.name = "alpha",
5353
.h_get = NULL,
5454
.h_set = alpha_handle_set,
@@ -455,13 +455,13 @@ static void example_initialization(void)
455455

456456
printk("settings subsys initialization: OK.\n");
457457

458-
rc = settings_register(&alph_handler);
458+
rc = settings_register(&alpha_handler);
459459
if (rc) {
460460
printk("subtree <%s> handler registered: fail (err %d)\n",
461-
alph_handler.name, rc);
461+
alpha_handler.name, rc);
462462
}
463463

464-
printk("subtree <%s> handler registered: OK\n", alph_handler.name);
464+
printk("subtree <%s> handler registered: OK\n", alpha_handler.name);
465465
printk("subtree <alpha/beta> has static handler\n");
466466
}
467467

0 commit comments

Comments
 (0)