remove unused argument
authorFelix Fietkau <nbd@openwrt.org>
Sun, 20 Jan 2008 23:54:17 +0000 (00:54 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 20 Jan 2008 23:54:17 +0000 (00:54 +0100)
cli.c
list.c
uci.h

diff --git a/cli.c b/cli.c
index 23386c1..ab0f9b8 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -59,7 +59,7 @@ static void uci_show_file(const char *name)
 
 static int uci_show(int argc, char **argv)
 {
 
 static int uci_show(int argc, char **argv)
 {
-       char **configs = uci_list_configs(ctx);
+       char **configs = uci_list_configs();
        char **p;
 
        if (!configs)
        char **p;
 
        if (!configs)
diff --git a/list.c b/list.c
index 48bc17f..0b3dd94 100644 (file)
--- a/list.c
+++ b/list.c
@@ -190,7 +190,7 @@ static inline char *get_filename(char *path)
        return p;
 }
 
        return p;
 }
 
-char **uci_list_configs(struct uci_context *ctx)
+char **uci_list_configs()
 {
        char **configs;
        glob_t globbuf;
 {
        char **configs;
        glob_t globbuf;
diff --git a/uci.h b/uci.h
index 5e6baf6..65fb7d3 100644 (file)
--- a/uci.h
+++ b/uci.h
@@ -89,7 +89,7 @@ extern int uci_cleanup(struct uci_context *ctx);
  *
  * @ctx: uci context
  */
  *
  * @ctx: uci context
  */
-extern char **uci_list_configs(struct uci_context *ctx);
+extern char **uci_list_configs();
 
 /* UCI data structures */
 
 
 /* UCI data structures */