X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=history.c;h=73c1bf06ffaf845018009523dfc26303b11a5df3;hp=24b5321514976a7627bbf42dcfd069aaa28dbf9c;hb=f1ae2ddc4ff16e541c46f595073bf277cd8f778a;hpb=68b14ef1b57500966d7e070cefebcd559acc202a diff --git a/history.c b/history.c index 24b5321..73c1bf0 100644 --- a/history.c +++ b/history.c @@ -243,7 +243,7 @@ static int uci_load_history(struct uci_context *ctx, struct uci_package *p, bool return changes; } -static void uci_filter_history(struct uci_context *ctx, const char *name, char *section, char *option) +static void uci_filter_history(struct uci_context *ctx, const char *name, const char *section, const char *option) { struct uci_parse_context *pctx; struct uci_element *e, *tmp; @@ -312,7 +312,7 @@ done: uci_cleanup(ctx); } -int uci_revert(struct uci_context *ctx, struct uci_package **pkg, char *section, char *option) +int uci_revert(struct uci_context *ctx, struct uci_package **pkg, const char *section, const char *option) { struct uci_package *p; char *name = NULL;