summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-01-08 22:22:19 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-01-08 22:22:19 (GMT)
commit5a2282de13c4da13f979185e652c8a08e2481fd1 (patch)
tree873414f226d848057f9bb64140b629bf5215b9e9 /cache.h
parente77f489edf3865dbcfd329461355523bb3c21075 (diff)
parent8fc11b5aa98540f7caab87e22e5aae63512893a2 (diff)
downloadgit-5a2282de13c4da13f979185e652c8a08e2481fd1.zip
git-5a2282de13c4da13f979185e652c8a08e2481fd1.tar.gz
git-5a2282de13c4da13f979185e652c8a08e2481fd1.tar.bz2
GIT 1.1.0v1.1.0
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/cache.h b/cache.h
index a99fb3c..29c9e81 100644
--- a/cache.h
+++ b/cache.h
@@ -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);