static int uci_do_import(int argc, char **argv)
{
struct uci_package *package = NULL;
- char **configs = NULL;
char *name = NULL;
int ret = UCI_OK;
- char **p;
if (argc > 2)
return 255;
static void uci_parse_config(struct uci_context *ctx, char **str)
{
struct uci_parse_context *pctx = ctx->pctx;
- struct uci_section *s;
char *name = NULL;
char *type = NULL;
{
struct uci_element *e;
struct uci_section *s;
- struct uci_option *o;
UCI_HANDLE_ERR(ctx);
UCI_ASSERT(ctx, res != NULL);
/* NB: UCI_INTERNAL use means without history tracking */
bool internal = ctx->internal;
struct uci_element *e;
- struct uci_section *s = NULL;
- struct uci_option *o = NULL;
UCI_HANDLE_ERR(ctx);
UCI_ASSERT(ctx, p != NULL);
/* NB: pass on internal flag to uci_del_element */
bool internal = ctx->internal;
struct uci_element *e;
- struct uci_section *s = NULL;
- struct uci_option *o = NULL;
UCI_HANDLE_ERR(ctx);
UCI_ASSERT(ctx, p != NULL);
struct uci_element *e = NULL;
struct uci_section *s = NULL;
struct uci_option *o = NULL;
- struct uci_history *h;
UCI_HANDLE_ERR(ctx);
UCI_ASSERT(ctx, p != NULL);
int uci_unload(struct uci_context *ctx, struct uci_package *p)
{
- struct uci_element *e;
-
UCI_HANDLE_ERR(ctx);
UCI_ASSERT(ctx, p != NULL);