summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlecs King <alecsk@gmail.com>2005-08-04 03:35:37 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-04 04:41:56 (GMT)
commit635d37afff321a9c296ed5d6e0203f2a1c91373f (patch)
tree74400f7c5508ef9cb635d8a9cab95dfe81747003 /tools
parent20f6633112c2a95b4907b4ff2e41e3c450395d34 (diff)
downloadgit-635d37afff321a9c296ed5d6e0203f2a1c91373f.zip
git-635d37afff321a9c296ed5d6e0203f2a1c91373f.tar.gz
git-635d37afff321a9c296ed5d6e0203f2a1c91373f.tar.bz2
[PATCH] Fix sparse warnings
fix one 'should it be static?' warning and two 'mixing declarations and code' warnings. Signed-off-by: Alecs King <alecsk@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'tools')
-rw-r--r--tools/mailinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/mailinfo.c b/tools/mailinfo.c
index 5a857f7..fb2ea2b 100644
--- a/tools/mailinfo.c
+++ b/tools/mailinfo.c
@@ -152,13 +152,13 @@ static void cleanup_space(char *buf)
static void handle_rest(void)
{
+ FILE *out = cmitmsg;
char *sub = cleanup_subject(subject);
cleanup_space(name);
cleanup_space(date);
cleanup_space(email);
cleanup_space(sub);
printf("Author: %s\nEmail: %s\nSubject: %s\nDate: %s\n\n", name, email, sub, date);
- FILE *out = cmitmsg;
do {
if (!memcmp("diff -", line, 6) ||