* [PATCH] builtin-name-rev.c: remove the remaining "typedef struct rev_name" from git.
@ 2010-01-30 1:32 Thiago Farina
2010-01-30 7:53 ` Stephen Boyd
0 siblings, 1 reply; 2+ messages in thread
From: Thiago Farina @ 2010-01-30 1:32 UTC (permalink / raw)
To: git
---
builtin-name-rev.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/builtin-name-rev.c b/builtin-name-rev.c
index 06a38ac..6416f72 100644
--- a/builtin-name-rev.c
+++ b/builtin-name-rev.c
@@ -7,11 +7,11 @@
#define CUTOFF_DATE_SLOP 86400 /* one day */
-typedef struct rev_name {
+struct rev_name {
const char *tip_name;
int generation;
int distance;
-} rev_name;
+};
static long cutoff = LONG_MAX;
@@ -43,7 +43,7 @@ static void name_rev(struct commit *commit,
}
if (name == NULL) {
- name = xmalloc(sizeof(rev_name));
+ name = xmalloc(sizeof(struct rev_name));
commit->util = name;
goto copy_data;
} else if (name->distance > distance) {
--
1.6.6.1.436.gaba7d
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-01-30 7:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-30 1:32 [PATCH] builtin-name-rev.c: remove the remaining "typedef struct rev_name" from git Thiago Farina
2010-01-30 7:53 ` Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).