diff options
author | Junio C Hamano <junkio@cox.net> | 2006-01-08 14:22:19 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-01-08 14:22:19 -0800 |
commit | 5a2282de13c4da13f979185e652c8a08e2481fd1 (patch) | |
tree | 873414f226d848057f9bb64140b629bf5215b9e9 /cache.h | |
parent | e77f489edf3865dbcfd329461355523bb3c21075 (diff) | |
parent | 8fc11b5aa98540f7caab87e22e5aae63512893a2 (diff) | |
download | git-5a2282de13c4da13f979185e652c8a08e2481fd1.tar.gz |
GIT 1.1.0v1.1.0
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -81,7 +81,7 @@ struct cache_entry { unsigned int ce_size; unsigned char sha1[20]; unsigned short ce_flags; - char name[0]; + char name[FLEX_ARRAY]; /* more */ }; #define CE_NAMEMASK (0x0fff) @@ -259,7 +259,7 @@ extern int checkout_entry(struct cache_entry *ce, struct checkout *state); extern struct alternate_object_database { struct alternate_object_database *next; char *name; - char base[0]; /* more */ + char base[FLEX_ARRAY]; /* more */ } *alt_odb_list; extern void prepare_alt_odb(void); @@ -273,7 +273,8 @@ extern struct packed_git { unsigned int pack_use_cnt; int pack_local; unsigned char sha1[20]; - char pack_name[0]; /* something like ".git/objects/pack/xxxxx.pack" */ + /* something like ".git/objects/pack/xxxxx.pack" */ + char pack_name[FLEX_ARRAY]; /* more */ } *packed_git; struct pack_entry { @@ -288,7 +289,7 @@ struct ref { unsigned char new_sha1[20]; unsigned char force; struct ref *peer_ref; /* when renaming */ - char name[0]; + char name[FLEX_ARRAY]; /* more */ }; extern int git_connect(int fd[2], char *url, const char *prog); |