summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJason Riedy <ejr@cs.berkeley.edu>2005-08-23 20:31:09 (GMT)
committerJason Riedy <ejr@cs.berkeley.edu>2005-08-24 03:41:11 (GMT)
commit6c5f9baa3bc0d63e141e0afc23110205379905a4 (patch)
tree3fd2a88512168179a81756768f444ecf3ccd23d6 /cache.h
parent2a29da7c6d6103c4719c71f6cce88e853260912c (diff)
downloadgit-6c5f9baa3bc0d63e141e0afc23110205379905a4.zip
git-6c5f9baa3bc0d63e141e0afc23110205379905a4.tar.gz
git-6c5f9baa3bc0d63e141e0afc23110205379905a4.tar.bz2
Replace zero-length array decls with [].
C99 denotes variable-sized members with [], not [0]. Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/cache.h b/cache.h
index ba5c4ab..e7f5a2e 100644
--- a/cache.h
+++ b/cache.h
@@ -100,7 +100,7 @@ struct cache_entry {
unsigned int ce_size;
unsigned char sha1[20];
unsigned short ce_flags;
- char name[0];
+ char name[];
};
#define CE_NAMEMASK (0x0fff)
@@ -283,7 +283,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[]; /* more */
} *alt_odb_list;
extern void prepare_alt_odb(void);
@@ -296,7 +296,7 @@ extern struct packed_git {
unsigned int pack_last_used;
unsigned int pack_use_cnt;
unsigned char sha1[20];
- char pack_name[0]; /* something like ".git/objects/pack/xxxxx.pack" */
+ char pack_name[]; /* something like ".git/objects/pack/xxxxx.pack" */
} *packed_git;
struct pack_entry {
@@ -310,7 +310,7 @@ struct ref {
unsigned char old_sha1[20];
unsigned char new_sha1[20];
struct ref *peer_ref; /* when renaming */
- char name[0];
+ char name[];
};
extern int git_connect(int fd[2], char *url, const char *prog);