mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
pointer to buffer. Zero sized array not allowed when pedantic
This commit is contained in:
parent
8f7d7a2dd4
commit
c9bee6d3b8
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@
|
||||||
#define TLV_H
|
#define TLV_H
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
#include <stdbool.h>
|
||||||
|
|
||||||
typedef uint32_t tlv_tag_t;
|
typedef uint32_t tlv_tag_t;
|
||||||
|
|
||||||
|
@ -41,7 +42,7 @@ struct tlvdb {
|
||||||
struct tlvdb_root {
|
struct tlvdb_root {
|
||||||
struct tlvdb db;
|
struct tlvdb db;
|
||||||
size_t len;
|
size_t len;
|
||||||
unsigned char buf[0];
|
unsigned char buf[];
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*tlv_cb)(void *data, const struct tlv *tlv, int level, bool is_leaf);
|
typedef void (*tlv_cb)(void *data, const struct tlv *tlv, int level, bool is_leaf);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue