Thread (4 messages) flat view 4 messages, 3 authors, 2016-06-15

Re: [PATCH] dir.c: avoid c99 array initialization

From: Alex Riesen <hidden>
Date: 2016-06-15 22:45:15

Possibly related (same subject, not in this thread)

2008/8/28 Brandon Casey [off-list ref]:
quoted hunk ↗ jump to hunk
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[] = {

?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help