projects
/
project
/
ubus.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a return value to make compiler silent.
[project/ubus.git]
/
cli.c
diff --git
a/cli.c
b/cli.c
index
98744cf
..
6bfb44e
100644
(file)
--- a/
cli.c
+++ b/
cli.c
@@
-27,6
+27,8
@@
static const char *format_type(void *priv, struct blob_attr *attr)
[BLOBMSG_TYPE_INT8] = "\"Boolean\"",
[BLOBMSG_TYPE_INT32] = "\"Integer\"",
[BLOBMSG_TYPE_STRING] = "\"String\"",
[BLOBMSG_TYPE_INT8] = "\"Boolean\"",
[BLOBMSG_TYPE_INT32] = "\"Integer\"",
[BLOBMSG_TYPE_STRING] = "\"String\"",
+ [BLOBMSG_TYPE_ARRAY] = "\"Array\"",
+ [BLOBMSG_TYPE_TABLE] = "\"Table\"",
};
const char *type = NULL;
int typeid;
};
const char *type = NULL;
int typeid;
@@
-72,7
+74,7
@@
static void receive_call_result_data(struct ubus_request *req, int type, struct
if (!msg)
return;
if (!msg)
return;
- str = blobmsg_format_json_indent(msg, true, 0);
+ str = blobmsg_format_json_indent(msg, true,
simple_output ? -1 :
0);
printf("%s\n", str);
free(str);
}
printf("%s\n", str);
free(str);
}