projects
/
project
/
uci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move uci_list_configs to file.c
[project/uci.git]
/
cli.c
diff --git
a/cli.c
b/cli.c
index
3a19b36
..
b7ddd51
100644
(file)
--- a/
cli.c
+++ b/
cli.c
@@
-15,8
+15,6
@@
#include "uci.h"
static struct uci_context *ctx;
#include "uci.h"
static struct uci_context *ctx;
-static char *buf = NULL;
-static int buflen = 256;
static void uci_usage(int argc, char **argv)
{
static void uci_usage(int argc, char **argv)
{
@@
-109,13
+107,13
@@
int main(int argc, char **argv)
{
int ret;
{
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);
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;
}
return ret;
}