projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f544a5c
)
constify
author
Felix Fietkau
<nbd@openwrt.org>
Thu, 1 May 2008 11:29:39 +0000
(13:29 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Thu, 1 May 2008 11:29:39 +0000
(13:29 +0200)
list.c
patch
|
blob
|
history
uci.h
patch
|
blob
|
history
diff --git
a/list.c
b/list.c
index
6e03f18
..
d1208ac
100644
(file)
--- a/
list.c
+++ b/
list.c
@@
-228,7
+228,7
@@
static struct uci_element *uci_lookup_list(struct uci_list *list, const char *na
return NULL;
}
return NULL;
}
-int uci_lookup(struct uci_context *ctx, struct uci_element **res, struct uci_package *p, c
har *section,
char *option)
+int uci_lookup(struct uci_context *ctx, struct uci_element **res, struct uci_package *p, c
onst char *section, const
char *option)
{
struct uci_element *e;
struct uci_section *s;
{
struct uci_element *e;
struct uci_section *s;
diff --git
a/uci.h
b/uci.h
index
d2d8011
..
be816fd
100644
(file)
--- a/
uci.h
+++ b/
uci.h
@@
-146,7
+146,7
@@
extern int uci_unload(struct uci_context *ctx, struct uci_package *p);
* If section is omitted, then a pointer to the config package is returned
* If option is omitted, then a pointer to the config section is returned
*/
* If section is omitted, then a pointer to the config package is returned
* If option is omitted, then a pointer to the config section is returned
*/
-extern int uci_lookup(struct uci_context *ctx, struct uci_element **res, struct uci_package *package, c
har *section,
char *option);
+extern int uci_lookup(struct uci_context *ctx, struct uci_element **res, struct uci_package *package, c
onst char *section, const
char *option);
/**
* uci_add_section: Add an unnamed section
/**
* uci_add_section: Add an unnamed section