#include "uci.h"
static struct uci_context *ctx;
-static char *buf = NULL;
-static int buflen = 256;
static void uci_usage(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;
}