From: Felix Fietkau Date: Sun, 27 Mar 2011 00:05:30 +0000 (+0100) Subject: use int8 as boolean X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fubus.git;a=commitdiff_plain;h=155f8059cc6b5206c2f277c385c12e57117bf4f4 use int8 as boolean --- diff --git a/cli.c b/cli.c index 76fb0c4..be8ba23 100644 --- 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\"", };