Skip to content

Commit aa20cbc

Browse files
rscharfegitster
authored andcommitted
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>
1 parent 7654286 commit aa20cbc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

builtin/apply.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ static int is_dev_null(const char *str)
443443
#define TERM_SPACE 1
444444
#define TERM_TAB 2
445445

446-
static int name_terminate(const char *name, int namelen, int c, int terminate)
446+
static int name_terminate(int c, int terminate)
447447
{
448448
if (c == ' ' && !(terminate & TERM_SPACE))
449449
return 0;
@@ -672,7 +672,7 @@ static char *find_name_common(const char *line, const char *def,
672672
if (!end && isspace(c)) {
673673
if (c == '\n')
674674
break;
675-
if (name_terminate(start, line-start, c, terminate))
675+
if (name_terminate(c, terminate))
676676
break;
677677
}
678678
line++;

0 commit comments

Comments
 (0)