more const stuff
authorFelix Fietkau <nbd@openwrt.org>
Tue, 3 Jun 2008 19:38:21 +0000 (21:38 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 3 Jun 2008 19:38:21 +0000 (21:38 +0200)
list.c
uci.h

diff --git a/list.c b/list.c
index 0272621..99b3ab9 100644 (file)
--- 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 (file)
--- 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