apply: remove unused parameters from name_terminate()

Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
René Scharfe 2016-05-28 18:12:01 +02:00 committed by Junio C Hamano
parent 765428699a
commit aa20cbc2e6
1 changed files with 2 additions and 2 deletions

View File

@ -443,7 +443,7 @@ static int is_dev_null(const char *str)
#define TERM_SPACE 1 #define TERM_SPACE 1
#define TERM_TAB 2 #define TERM_TAB 2


static int name_terminate(const char *name, int namelen, int c, int terminate) static int name_terminate(int c, int terminate)
{ {
if (c == ' ' && !(terminate & TERM_SPACE)) if (c == ' ' && !(terminate & TERM_SPACE))
return 0; return 0;
@ -672,7 +672,7 @@ static char *find_name_common(const char *line, const char *def,
if (!end && isspace(c)) { if (!end && isspace(c)) {
if (c == '\n') if (c == '\n')
break; break;
if (name_terminate(start, line-start, c, terminate)) if (name_terminate(c, terminate))
break; break;
} }
line++; line++;