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:
68b14ef
)
constify
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Apr 2008 14:03:00 +0000
(16:03 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 13 Apr 2008 14:03:00 +0000
(16:03 +0200)
history.c
patch
|
blob
|
history
uci.h
patch
|
blob
|
history
diff --git
a/history.c
b/history.c
index
24b5321
..
73c1bf0
100644
(file)
--- 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;
}
return changes;
}
-static void uci_filter_history(struct uci_context *ctx, const char *name, c
har *section,
char *option)
+static void uci_filter_history(struct uci_context *ctx, const char *name, c
onst char *section, const
char *option)
{
struct uci_parse_context *pctx;
struct uci_element *e, *tmp;
{
struct uci_parse_context *pctx;
struct uci_element *e, *tmp;
@@
-312,7
+312,7
@@
done:
uci_cleanup(ctx);
}
uci_cleanup(ctx);
}
-int uci_revert(struct uci_context *ctx, struct uci_package **pkg, c
har *section,
char *option)
+int uci_revert(struct uci_context *ctx, struct uci_package **pkg, c
onst char *section, const
char *option)
{
struct uci_package *p;
char *name = NULL;
{
struct uci_package *p;
char *name = NULL;
diff --git
a/uci.h
b/uci.h
index
0850ad6
..
d2d8011
100644
(file)
--- a/
uci.h
+++ b/
uci.h
@@
-262,7
+262,7
@@
extern int uci_add_history_path(struct uci_context *ctx, const char *dir);
* @section: section name (optional)
* @option option name (optional)
*/
* @section: section name (optional)
* @option option name (optional)
*/
-extern int uci_revert(struct uci_context *ctx, struct uci_package **p, c
har *section,
char *option);
+extern int uci_revert(struct uci_context *ctx, struct uci_package **p, c
onst char *section, const
char *option);
/**
* uci_parse_argument: parse a shell-style argument, with an arbitrary quoting style
/**
* uci_parse_argument: parse a shell-style argument, with an arbitrary quoting style