X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fuci.git;a=blobdiff_plain;f=cli.c;h=043ba1a05d90063093c3d50c1b07916b3a6664e9;hp=1fe7cc72758346b30516d237b9a987aae5ecbfbd;hb=396dd7a78674c5afc08240b91b045f366b54face;hpb=8a3154a1db5078cf211c3ea76171956ba076dd76 diff --git a/cli.c b/cli.c index 1fe7cc7..043ba1a 100644 --- a/cli.c +++ b/cli.c @@ -14,17 +14,24 @@ #include #include "uci.h" +static const char *appname = "uci"; + static struct uci_context *ctx; -static char *buf = NULL; -static int buflen = 256; +enum { + CMD_GET, + CMD_SET, + CMD_DEL +}; static void uci_usage(int argc, char **argv) { fprintf(stderr, "Usage: %s [] []\n\n" "Commands:\n" - "\tshow [[.
[.