aboutsummaryrefslogtreecommitdiff
path: root/driver-ti.c
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-12-02 01:05:47 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2008-12-02 01:05:47 +0000
commit2c1bea4f15c95a04b7d82ec801484aec2d2663b3 (patch)
treeeb6dc3b2b66c795d71ca36fc2bed8c7a9a19f732 /driver-ti.c
parent2fba93b6904e22e46de66648d5c98af7512e1e1e (diff)
downloadtermo-2c1bea4f15c95a04b7d82ec801484aec2d2663b3.tar.gz
termo-2c1bea4f15c95a04b7d82ec801484aec2d2663b3.tar.xz
termo-2c1bea4f15c95a04b7d82ec801484aec2d2663b3.zip
Use a C99 flexible array member rather than the [0] hack
Diffstat (limited to 'driver-ti.c')
-rw-r--r--driver-ti.c2
1 files changed, 1 insertions, 1 deletions
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 {