From 2c1bea4f15c95a04b7d82ec801484aec2d2663b3 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Tue, 2 Dec 2008 01:05:47 +0000 Subject: [PATCH] Use a C99 flexible array member rather than the [0] hack --- driver-ti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver-ti.c b/driver-ti.c index 952bf76..d598db7 100644 --- a/driver-ti.c +++ b/driver-ti.c @@ -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 {