]> pilppa.org Git - uci.git/blobdiff - history.c
code cleanup, some api changes for new uci_ptr struct
[uci.git] / history.c
index 4e975245de79caa2713cb315189c3d1bf442b307..07db1d3b77124236b888503bb5872da505af9e01 100644 (file)
--- a/history.c
+++ b/history.c
@@ -150,13 +150,13 @@ static void uci_parse_history_line(struct uci_context *ctx, struct uci_package *
 
        switch(cmd) {
        case UCI_CMD_RENAME:
-               UCI_INTERNAL(uci_rename, ctx, p, ptr.section, ptr.option, ptr.value);
+               UCI_INTERNAL(uci_rename, ctx, &ptr);
                break;
        case UCI_CMD_REMOVE:
-               UCI_INTERNAL(uci_delete, ctx, p, ptr.section, ptr.option);
+               UCI_INTERNAL(uci_delete, ctx, &ptr);
                break;
        case UCI_CMD_LIST_ADD:
-               UCI_INTERNAL(uci_add_list, ctx, p, ptr.section, ptr.option, ptr.value, NULL);
+               UCI_INTERNAL(uci_add_list, ctx, &ptr);
                break;
        case UCI_CMD_ADD:
        case UCI_CMD_CHANGE: