Re: [PATCH] dir.c: avoid c99 array initialization
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Aug 28, 2008, 21:12 UTC
- Message-ID
- <81b0412b0808281412j2a5643ceu49a49cf62002f0be@mail.gmail.com>
- In-Reply-To
- <ojPuT0s3trguL5yp3hozXVxP1WsidV5hbSISvFZjv5JUCO31lWTzEw@cipher.nrlssc.navy.mil>
2008/8/28 Brandon Casey <casey@nrlssc.navy.mil>:
Show 11 quoted lines
> diff --git a/builtin-cat-file.c b/builtin-cat-file.c
> index 7441a56..d954c09 100644
> --- a/builtin-cat-file.c
> +++ b/builtin-cat-file.c
> @@ -212,7 +212,7 @@ int cmd_cat_file(int argc, const char **argv, const char *pr
> int opt = 0, batch = 0;
> const char *exp_type = NULL, *obj_name = NULL;
>
> - const struct option options[] = {
> + struct option options[] = {
> OPT_GROUP("<type> can be one of: blob, tree, commit, tag"),#ifdef HAVE_CONST #define gitconst const #else #define gitconst #endif
- const struct option options[] = { + gitconst struct option options[] = {
?