X-Git-Url: http://git.archive.openwrt.org/?a=blobdiff_plain;ds=sidebyside;f=cli.c;h=46da45af1a52f9f0119687d3b86d9efd9abb1057;hb=600ce9acc5efadd699243f889462b982b83052f2;hp=290dcbfddaae976af725cbf5d13530b2593a80aa;hpb=9efd0d9456d1822cb93b4ce1cc769b09a400852d;p=project%2Fuci.git diff --git a/cli.c b/cli.c index 290dcbf..46da45a 100644 --- a/cli.c +++ b/cli.c @@ -354,10 +354,10 @@ static int uci_do_section_cmd(int cmd, int argc, char **argv) ret = uci_rename(ctx, &ptr); break; case CMD_REVERT: - ret = uci_revert(ctx, &ptr.p, ptr.section, ptr.option); + ret = uci_revert(ctx, &ptr); break; case CMD_SET: - ret = uci_set(ctx, ptr.p, ptr.section, ptr.option, ptr.value, NULL); + ret = uci_set(ctx, &ptr); break; case CMD_ADD_LIST: ret = uci_add_list(ctx, &ptr); @@ -470,7 +470,8 @@ static int uci_cmd(int argc, char **argv) cmd = CMD_RENAME; else if (!strcasecmp(argv[0], "revert")) cmd = CMD_REVERT; - else if (!strcasecmp(argv[0], "del")) + else if (!strcasecmp(argv[0], "del") || + !strcasecmp(argv[0], "delete")) cmd = CMD_DEL; else if (!strcasecmp(argv[0], "import")) cmd = CMD_IMPORT;