summaryrefslogtreecommitdiff
path: root/src/odb.c
diff options
context:
space:
mode:
authorRamsay Jones <ramsay@ramsay1.demon.co.uk>2009-06-14 22:10:23 +0100
committerAndreas Ericsson <ae@op5.se>2009-06-15 07:33:44 +0200
commit2bf93fa1071c3df7f43926c8e6c3bd2353d78160 (patch)
treeeeae5bdbc9a3075ff9ee6a08af804b5df11154ec /src/odb.c
parent10aa3fa72afab7ee31e116ae06442fe0f7b79df2 (diff)
downloadlibgit2-2bf93fa1071c3df7f43926c8e6c3bd2353d78160.tar.gz
Correct the spelling of the FLEX_ARRAY macro
When setting the default value, the macro name was specified as GIT_FLEX_ARRAY, which is inconsistent with it's earlier usage in the file. This caused a compilation error, using the MS Visual C/C++ compiler, when compiling the git_packlist struct definition in src/odb.c. In addition to changing the spelling of the FLEX_ARRAY macro to GIT_FLEX_ARRAY, including it's use in src/odb.c, we also rename the TYPEOF macro to GIT_TYPEOF. Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>
Diffstat (limited to 'src/odb.c')
-rw-r--r--src/odb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/odb.c b/src/odb.c
index 5f10ae02d..ea28d017c 100644
--- a/src/odb.c
+++ b/src/odb.c
@@ -70,7 +70,7 @@ typedef struct git_pack git_pack;
typedef struct {
size_t n_packs;
unsigned int refcnt;
- git_pack *packs[FLEX_ARRAY];
+ git_pack *packs[GIT_FLEX_ARRAY];
} git_packlist;
struct git_odb {