From 81e4f335d5c725e40614c26f9ef4778fa1a4aecf Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Mon, 21 Jan 2008 02:46:42 +0100 Subject: [PATCH] add uci export --- cli.c | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----- foo | 2 ++ 2 files changed, 77 insertions(+), 6 deletions(-) create mode 100644 foo diff --git a/cli.c b/cli.c index 322d170..40b5d91 100644 --- a/cli.c +++ b/cli.c @@ -15,19 +15,57 @@ #include "uci.h" static struct uci_context *ctx; +static char *buf = NULL; +static int buflen = 256; static void uci_usage(int argc, char **argv) { fprintf(stderr, - "Usage: %s [options] [arguments]\n\n" + "Usage: %s [] []\n\n" "Commands:\n" "\tshow [[.
[.