sysparam: split the key into a name-space and name.
This is largely to aid compatibility with other non-volatile stores that have limited sized names but support a name space. This might open a path to more compact storage of the key names although that is not implemented here.
This commit is contained in:
parent
f89ba44f6e
commit
1c3d5996a6
7 changed files with 379 additions and 208 deletions
|
|
@ -365,7 +365,7 @@ ethernetif_init(struct netif *netif)
|
|||
/* Initialize interface hostname */
|
||||
char *hostname = NULL;
|
||||
/* Disabled for now as there were reports of crashes here, sysparam issues */
|
||||
/* sysparam_get_string("hostname", &hostname); */
|
||||
/* sysparam_get_string("wificfg", "hostname", &hostname); */
|
||||
if (hostname && strlen(hostname) == 0) {
|
||||
free(hostname);
|
||||
hostname = NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue