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>

René Scharfe committed May 28, 2016 at 18:12 UTC aa20cbc2e6cc39853dad688fcd7dc51132172fcd
1 file changed +2 -2
builtin/apply.c
+2 -2
@@ -443,7 +443,7 @@ static int is_dev_null(const char *str)
443 #define TERM_SPACE 1
444 #define TERM_TAB 2
445
446 -static int name_terminate(const char *name, int namelen, int c, int terminate)
446 +static int name_terminate(int c, int terminate)
447 {
448 if (c == ' ' && !(terminate & TERM_SPACE))
449 return 0;
@@ -672,7 +672,7 @@ static char *find_name_common(const char *line, const char *def,
672 if (!end && isspace(c)) {
673 if (c == '\n')
674 break;
675 - if (name_terminate(start, line-start, c, terminate))
675 + if (name_terminate(c, terminate))
676 break;
677 }
678 line++;