system/cfgdata: fix compilation when MTD_CONFIG_NAMED is enabled
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
2d8798d260
commit
29cc338dac
@ -234,6 +234,7 @@ static void cfgdatacmd_set(int argc, char *argv[])
|
|||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
int fd;
|
int fd;
|
||||||
|
int x;
|
||||||
struct config_data_s cfg;
|
struct config_data_s cfg;
|
||||||
uint8_t data[32];
|
uint8_t data[32];
|
||||||
|
|
||||||
@ -244,7 +245,6 @@ static void cfgdatacmd_set(int argc, char *argv[])
|
|||||||
strncpy(cfg.name, argv[2], CONFIG_MTD_CONFIG_NAME_LEN);
|
strncpy(cfg.name, argv[2], CONFIG_MTD_CONFIG_NAME_LEN);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
int x;
|
|
||||||
|
|
||||||
/* Parse the id and instance */
|
/* Parse the id and instance */
|
||||||
|
|
||||||
@ -427,9 +427,10 @@ static void cfgdatacmd_unset(int argc, char *argv[])
|
|||||||
|
|
||||||
static void cfgdatacmd_print(int argc, char *argv[])
|
static void cfgdatacmd_print(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
struct config_data_s cfg;
|
|
||||||
int ret;
|
int ret;
|
||||||
int fd;
|
int fd;
|
||||||
|
int x;
|
||||||
|
struct config_data_s cfg;
|
||||||
bool isstring;
|
bool isstring;
|
||||||
|
|
||||||
#ifdef CONFIG_MTD_CONFIG_NAMED
|
#ifdef CONFIG_MTD_CONFIG_NAMED
|
||||||
@ -439,7 +440,6 @@ static void cfgdatacmd_print(int argc, char *argv[])
|
|||||||
strncpy(cfg.name, argv[2], CONFIG_MTD_CONFIG_NAME_LEN);
|
strncpy(cfg.name, argv[2], CONFIG_MTD_CONFIG_NAME_LEN);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
int x;
|
|
||||||
|
|
||||||
/* Parse the id and instance */
|
/* Parse the id and instance */
|
||||||
|
|
||||||
@ -536,8 +536,9 @@ static void cfgdatacmd_print(int argc, char *argv[])
|
|||||||
|
|
||||||
static void cfgdatacmd_show_all_config_items(void)
|
static void cfgdatacmd_show_all_config_items(void)
|
||||||
{
|
{
|
||||||
|
int ret;
|
||||||
int fd;
|
int fd;
|
||||||
int ret, x;
|
int x;
|
||||||
struct config_data_s cfg;
|
struct config_data_s cfg;
|
||||||
char fmtstr[24];
|
char fmtstr[24];
|
||||||
bool isstring;
|
bool isstring;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user