Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
mailinfo: move definition of MAX_HDR_PARSED closer to its use
author
Junio C Hamano
<gitster@pobox.com>
Thu, 15 Oct 2015 00:44:46 +0000
(17:44 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 21 Oct 2015 22:34:49 +0000
(15:34 -0700)
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mailinfo.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
30f50c3
)
diff --git
a/builtin/mailinfo.c
b/builtin/mailinfo.c
index 23dcd9521125c222d5ecc64de90a9c0069f8744e..de7ccd8a2837858e47d27fdbc8408f7973a2575c 100644
(file)
--- a/
builtin/mailinfo.c
+++ b/
builtin/mailinfo.c
@@
-28,7
+28,6
@@
static int use_scissors;
static int add_message_id;
static int use_inbody_headers = 1;
-#define MAX_HDR_PARSED 10
#define MAX_BOUNDARIES 5
static void cleanup_space(struct strbuf *sb)
@@
-281,6
+280,7
@@
static void cleanup_subject(struct strbuf *subject)
strbuf_trim(subject);
}
+#define MAX_HDR_PARSED 10
static const char *header[MAX_HDR_PARSED] = {
"From","Subject","Date",
};