for old version gcc compiler, we fix the size of child_desc in TLV message library

This commit is contained in:
Sukchan Lee 2018-02-21 14:48:41 +00:00
parent c8a65b6b18
commit d74afc5bc7
1 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,8 @@ extern "C" {
#define TLV_MAX_MORE 8
#define TLV_1_OR_MORE(__v) __v[TLV_MAX_MORE]
#define TLV_MAX_CHILD_DESC 128
typedef enum {
TLV_UINT8,
TLV_UINT16,
@ -37,7 +39,7 @@ typedef struct _tlv_desc_t {
c_uint16_t length;
c_uint8_t instance;
c_uint16_t vsize;
void *child_descs[];
void *child_descs[TLV_MAX_CHILD_DESC];
} tlv_desc_t;
extern tlv_desc_t tlv_desc_more1;