return a pointer to the uci_config struct in uci_load
[project/uci.git] / cli.c
diff --git a/cli.c b/cli.c
index 7dece62..5e0697d 100644 (file)
--- a/cli.c
+++ b/cli.c
@@ -30,7 +30,8 @@ static void uci_usage(int argc, char **argv)
 
 static void uci_show_file(const char *name)
 {
-       uci_load(ctx, name);
+       struct uci_config *cfg;
+       uci_load(ctx, name, &cfg);
        uci_unload(ctx, name);
 }