projects
/
project
/
ubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cf4326
)
use int8 as boolean
author
Felix Fietkau
<nbd@openwrt.org>
Sun, 27 Mar 2011 00:05:30 +0000
(
01:05
+0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 27 Mar 2011 00:05:30 +0000
(
01:05
+0100)
cli.c
patch
|
blob
|
history
diff --git
a/cli.c
b/cli.c
index 76fb0c424703bd66ed4616938a42bb9cda4aa3db..be8ba23df9bb4bc8fec3354f3b19ebd2c5a8a3a3 100644
(file)
--- a/
cli.c
+++ b/
cli.c
@@
-9,6
+9,7
@@
static int timeout = 30;
static const char *format_type(void *priv, struct blob_attr *attr)
{
static const char * const attr_types[] = {
+ [BLOBMSG_TYPE_INT8] = "\"Boolean\"",
[BLOBMSG_TYPE_INT32] = "\"Integer\"",
[BLOBMSG_TYPE_STRING] = "\"String\"",
};