add back uci_context parameter for uci_list_configs - for future use with multiple...
authorFelix Fietkau <nbd@openwrt.org>
Wed, 23 Jan 2008 04:51:26 +0000 (05:51 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 23 Jan 2008 04:51:26 +0000 (05:51 +0100)
cli.c
list.c
uci.h

diff --git a/cli.c b/cli.c
index 1fe7cc7..2252e5e 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -52,7 +52,7 @@ static int uci_show(int argc, char **argv)
        char **configs;
        char **p;
 
-       configs = uci_list_configs();
+       configs = uci_list_configs(ctx);
        if (!configs)
                return 0;
 
@@ -75,7 +75,7 @@ static int uci_show(int argc, char **argv)
 
 static int uci_do_export(int argc, char **argv)
 {
-       char **configs = uci_list_configs();
+       char **configs = uci_list_configs(ctx);
        char **p;
 
        if (!configs)
diff --git a/list.c b/list.c
index 01bdb81..ba5a9f0 100644 (file)
--- a/list.c
+++ b/list.c
@@ -193,7 +193,7 @@ static inline char *get_filename(char *path)
        return p;
 }
 
-char **uci_list_configs()
+char **uci_list_configs(struct uci_context *ctx)
 {
        char **configs;
        glob_t globbuf;
diff --git a/uci.h b/uci.h
index cca38c2..687454f 100644 (file)
--- a/uci.h
+++ b/uci.h
@@ -110,7 +110,7 @@ extern int uci_cleanup(struct uci_context *ctx);
  *
  * @ctx: uci context
  */
-extern char **uci_list_configs();
+extern char **uci_list_configs(struct uci_context *ctx);
 
 /* UCI data structures */