From 057e46181b7ea2c322657d838225d9f4e374cb3c Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Tue, 3 Jun 2008 21:38:21 +0200 Subject: [PATCH] more const stuff --- list.c | 2 +- uci.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/list.c b/list.c index 0272621..99b3ab9 100644 --- a/list.c +++ b/list.c @@ -415,7 +415,7 @@ int uci_add_section(struct uci_context *ctx, struct uci_package *p, const char * return 0; } -int uci_delete(struct uci_context *ctx, struct uci_package *p, char *section, char *option) +int uci_delete(struct uci_context *ctx, struct uci_package *p, const char *section, const char *option) { /* NB: pass on internal flag to uci_del_element */ bool internal = ctx->internal; diff --git a/uci.h b/uci.h index d17dee7..cb9fd66 100644 --- a/uci.h +++ b/uci.h @@ -203,7 +203,7 @@ extern int uci_delete_element(struct uci_context *ctx, struct uci_element *e); * @section: section name * @option: option name (optional) */ -extern int uci_delete(struct uci_context *ctx, struct uci_package *p, char *section, char *option); +extern int uci_delete(struct uci_context *ctx, struct uci_package *p, const char *section, const char *option); /** * uci_save: save change history for a package -- 2.41.0