summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2a29da7)
raw | patch | inline | side by side (parent: 2a29da7)
author | Jason Riedy <ejr@cs.berkeley.edu> | |
Tue, 23 Aug 2005 20:31:09 +0000 (13:31 -0700) | ||
committer | Jason Riedy <ejr@cs.berkeley.edu> | |
Wed, 24 Aug 2005 03:41:11 +0000 (20:41 -0700) |
C99 denotes variable-sized members with [], not [0].
Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
Signed-off-by: Jason Riedy <ejr@cs.berkeley.edu>
cache.h | patch | blob | history | |
commit.c | patch | blob | history | |
ls-files.c | patch | blob | history | |
receive-pack.c | patch | blob | history | |
server-info.c | patch | blob | history |
index ba5c4ab7eea18ac4782d5f31a80330f8b487f1b0..e7f5a2e16fa86111b576f9fae558cbbda2f1a050 100644 (file)
--- a/cache.h
+++ b/cache.h
unsigned int ce_size;
unsigned char sha1[20];
unsigned short ce_flags;
- char name[0];
+ char name[];
};
#define CE_NAMEMASK (0x0fff)
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);
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 {
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);
diff --git a/commit.c b/commit.c
index e51eda15243614d83948f31ee3814120ad61b1fe..56192587afa7454e5db8c5ac3e4a937c1f0694ea 100644 (file)
--- a/commit.c
+++ b/commit.c
static struct commit_graft {
unsigned char sha1[20];
int nr_parent;
- unsigned char parent[0][20]; /* more */
+ unsigned char parent[][20]; /* more */
} **commit_graft;
static int commit_graft_alloc, commit_graft_nr;
diff --git a/ls-files.c b/ls-files.c
index 2c7aada88cc582dfee7ba19d1e6ae717e23d8e03..56f3919e069eb7390ff1f06ff25a0cc9c420e8a8 100644 (file)
--- a/ls-files.c
+++ b/ls-files.c
struct nond_on_fs {
int len;
- char name[0];
+ char name[];
};
static struct nond_on_fs **dir;
diff --git a/receive-pack.c b/receive-pack.c
index 9026f1bf828abdceb907054bf54ecfb7311df5e1..3a1b2ab694bf61a25b926caa8b2a00e00fabb5d9 100644 (file)
--- a/receive-pack.c
+++ b/receive-pack.c
unsigned char updated;
unsigned char old_sha1[20];
unsigned char new_sha1[20];
- char ref_name[0];
+ char ref_name[];
};
static struct command *commands = NULL;
diff --git a/server-info.c b/server-info.c
index 2b3aecab4aa0df4125f401219f06ea04577cacca..cb58eb607e4a3a3f24862bc701e86adfb06fb45b 100644 (file)
--- a/server-info.c
+++ b/server-info.c
int nr_alloc;
int nr_heads;
unsigned char (*head)[20];
- char dep[0]; /* more */
+ char dep[]; /* more */
} **info;
static int num_pack;
static const char *objdir;