diff options
author | Junio C Hamano <junkio@cox.net> | 2006-06-18 22:13:54 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-18 22:13:54 -0700 |
commit | 275fb96ae65b0886d9e6e93a421453eb6d13cb9f (patch) | |
tree | f982b8defd5c9f3b887bcbe97edc0c63742df16d /diff-delta.c | |
parent | 69c18d887253a8fd44df232a604ba3dac3d371a5 (diff) | |
parent | 2bda77e080dd8d47ca0b87c78e9061fbaa37455a (diff) | |
download | git-275fb96ae65b0886d9e6e93a421453eb6d13cb9f.tar.gz |
Merge early parts of branch 'ff/c99'
Diffstat (limited to 'diff-delta.c')
-rw-r--r-- | diff-delta.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/diff-delta.c b/diff-delta.c index 25a798d050..74486b1b81 100644 --- a/diff-delta.c +++ b/diff-delta.c @@ -22,6 +22,7 @@ #include <string.h> #include "delta.h" +#include "git-compat-util.h" /* maximum hash entry list for the same hash bucket */ #define HASH_LIMIT 64 @@ -131,7 +132,7 @@ struct delta_index { const void *src_buf; unsigned long src_size; unsigned int hash_mask; - struct index_entry *hash[0]; + struct index_entry *hash[FLEX_ARRAY]; }; struct delta_index * create_delta_index(const void *buf, unsigned long bufsize) |