]> pilppa.org Git - uci.git/blobdiff - cli.c
return a pointer to the uci_config struct in uci_load
[uci.git] / cli.c
diff --git a/cli.c b/cli.c
index 7dece62f5556878a5f300ffddf88f576c30cec8d..5e0697da2ed2f0f808092941fb9207ecc50ad22f 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);
 }