summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-03-07 21:02:26 +0100
committerJunio C Hamano <gitster@pobox.com>2009-03-07 20:52:23 -0800
commitfd13b21f52b499ff6fa951ce27d4b9c9f0653087 (patch)
treeb59de697d0f3ce229daabd83387ab01d162a1371 /log-tree.c
parenteb3a9dd3279fe4b05f286665986ebf6d43a6ccc0 (diff)
downloadgit-fd13b21f52b499ff6fa951ce27d4b9c9f0653087.tar.gz
Move local variables to narrower scopes
These weren't used outside and can be safely moved Signed-off-by: Benjamin Kramer <benny.kra@googlemail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/log-tree.c b/log-tree.c
index 84a74e544b..63cff74350 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -79,18 +79,18 @@ void show_decorations(struct rev_info *opt, struct commit *commit)
*/
static int detect_any_signoff(char *letter, int size)
{
- char ch, *cp;
+ char *cp;
int seen_colon = 0;
int seen_at = 0;
int seen_name = 0;
int seen_head = 0;
cp = letter + size;
- while (letter <= --cp && (ch = *cp) == '\n')
+ while (letter <= --cp && *cp == '\n')
continue;
while (letter <= cp) {
- ch = *cp--;
+ char ch = *cp--;
if (ch == '\n')
break;