X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=b7ddd511676ed82fdfe9ce77c841bb6a8cc74ad0;hp=3a19b36c9a7bdc193e1b56b702a5a1dacfcae9cd;hb=a16f02de27a2c486e5abc5faa7bbed5871a31228;hpb=8f5a6c07caaaf5bd692623d1ed8ffbfa20f564d8 diff --git a/cli.c b/cli.c index 3a19b36..b7ddd51 100644 --- a/cli.c +++ b/cli.c @@ -15,8 +15,6 @@ #include "uci.h" static struct uci_context *ctx; -static char *buf = NULL; -static int buflen = 256; static void uci_usage(int argc, char **argv) { @@ -109,13 +107,13 @@ int main(int argc, char **argv) { int ret; - ctx = uci_alloc(); + ctx = uci_alloc_context(); if (argc < 2) uci_usage(argc, argv); ret = uci_cmd(argc - 1, argv + 1); if (ret == 255) uci_usage(argc, argv); - uci_free(ctx); + uci_free_context(ctx); return ret; }