From a1f1ee31878c71cb460126d07429eab07587d170 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 23 Jan 2008 05:51:26 +0100 Subject: [PATCH] add back uci_context parameter for uci_list_configs - for future use with multiple backends --- cli.c | 4 ++-- list.c | 2 +- uci.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli.c b/cli.c index 1fe7cc7..2252e5e 100644 --- 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 --- 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 --- 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 */ -- 2.25.1