From: Felix Fietkau Date: Tue, 3 Jun 2008 19:38:21 +0000 (+0200) Subject: more const stuff X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=057e46181b7ea2c322657d838225d9f4e374cb3c;p=uci.git more const stuff --- 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