X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=ucimap-example.c;h=d401624df9695abb853e1cb22093dd9513c66842;hp=0ad31d6a6ba74fa3a50aa8f29839a0c377b6bee0;hb=062323b4f663d3c0a33c49d2c0ded624e4fb4693;hpb=8ae8a7fc893e18676d6a35193f8a74c87ceb7b7f diff --git a/ucimap-example.c b/ucimap-example.c index 0ad31d6..d401624 100644 --- a/ucimap-example.c +++ b/ucimap-example.c @@ -104,8 +104,8 @@ struct my_optmap { int test; }; -static struct uci_sectmap network_interface; -static struct uci_sectmap network_alias; +static struct uci_sectionmap network_interface; +static struct uci_sectionmap network_alias; static struct my_optmap network_interface_options[] = { { @@ -154,7 +154,7 @@ static struct my_optmap network_interface_options[] = { } }; -static struct uci_sectmap network_interface = { +static struct uci_sectionmap network_interface = { .type = "interface", .alloc_len = sizeof(struct uci_network), .init = network_init_interface, @@ -172,7 +172,7 @@ static struct uci_optmap network_alias_options[] = { } }; -static struct uci_sectmap network_alias = { +static struct uci_sectionmap network_alias = { .type = "alias", .options = network_alias_options, .alloc_len = sizeof(struct uci_network), @@ -181,7 +181,7 @@ static struct uci_sectmap network_alias = { .n_options = ARRAY_SIZE(network_alias_options), }; -static struct uci_sectmap *network_smap[] = { +static struct uci_sectionmap *network_smap[] = { &network_interface, &network_alias, };