Use a C99 flexible array member rather than the [0] hack

This commit is contained in:
Paul LeoNerd Evans 2008-12-02 01:05:47 +00:00
parent 2fba93b690
commit 2c1bea4f15

View File

@ -32,7 +32,7 @@ struct trie_node_key {
struct trie_node_arr {
trie_nodetype type;
unsigned char min, max; /* INCLUSIVE endpoints of the extent range */
struct trie_node *arr[0];
struct trie_node *arr[]; /* dynamic size at allocation time */
};
typedef struct {