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>
This commit is contained in:
Benjamin Kramer
2009-03-07 21:02:26 +01:00
committed by Junio C Hamano
parent eb3a9dd327
commit fd13b21f52
4 changed files with 8 additions and 12 deletions

View File

@ -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;