]> pilppa.org Git - uci.git/blobdiff - cli.c
uci_revert api cleanup
[uci.git] / cli.c
diff --git a/cli.c b/cli.c
index 290dcbfddaae976af725cbf5d13530b2593a80aa..a1f4ce35f97a10bba7f00561d8b1cb4eed915efb 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -354,7 +354,7 @@ 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);