X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=ucimap-example.c;fp=ucimap-example.c;h=ca5593100e7ebec72767152e51c4559710a4d400;hb=75c9a5d0faf426863f52094fcc77d11e39786581;hp=0e3f7a4a69eeca0046159593ffc1a17803421ac9;hpb=95967daea5d1be988b4d25280fcea9ae2b6c52cd;p=project%2Fuci.git diff --git a/ucimap-example.c b/ucimap-example.c index 0e3f7a4..ca55931 100644 --- a/ucimap-example.c +++ b/ucimap-example.c @@ -139,8 +139,8 @@ static struct my_optmap network_interface_options[] = { static struct uci_sectmap network_interface = { .type = "interface", .alloc_len = sizeof(struct uci_network), - .init_section = network_init_interface, - .add_section = network_add_interface, + .init = network_init_interface, + .add = network_add_interface, .options = &network_interface_options[0].map, .n_options = ARRAY_SIZE(network_interface_options), .options_size = sizeof(struct my_optmap) @@ -158,8 +158,8 @@ static struct uci_sectmap network_alias = { .type = "alias", .options = network_alias_options, .alloc_len = sizeof(struct uci_network), - .init_section = network_init_alias, - .add_section = network_add_alias, + .init = network_init_alias, + .add = network_add_alias, .n_options = ARRAY_SIZE(network_alias_options), };