diff options
author | Shawn Pearce <spearce@spearce.org> | 2006-07-08 14:34:02 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-07-10 00:13:28 -0700 |
commit | 344c52aee5f2dfaad2a065f8dcc8566d52d0d6c9 (patch) | |
tree | b17a624f0ca2ea52753397ee588a05b63428d612 /checkout-index.c | |
parent | 4f12d529abbf233e1df93e7ffa5f2719005a2258 (diff) | |
download | git-344c52aee5f2dfaad2a065f8dcc8566d52d0d6c9.tar.gz |
Avoid C99 initializers
In a handful places, we use C99 structure and array
initializers, which some compilers do not support.
This can be handy when you are trying to compile GIT on a
Solaris system that has an older C compiler, for example.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'checkout-index.c')
-rw-r--r-- | checkout-index.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/checkout-index.c b/checkout-index.c index 2927955508..61152f34b7 100644 --- a/checkout-index.c +++ b/checkout-index.c @@ -49,14 +49,7 @@ static int checkout_stage; /* default to checkout stage0 */ static int to_tempfile; static char topath[4][MAXPATHLEN+1]; -static struct checkout state = { - .base_dir = "", - .base_dir_len = 0, - .force = 0, - .quiet = 0, - .not_new = 0, - .refresh_cache = 0, -}; +static struct checkout state; static void write_tempfile_record (const char *name) { @@ -177,6 +170,7 @@ int main(int argc, char **argv) int all = 0; int read_from_stdin = 0; + state.base_dir = ""; prefix = setup_git_directory(); git_config(git_default_config); prefix_length = prefix ? strlen(prefix) : 0; |