Skip to content

Commit bf523da

Browse files
committed
Merge branch 'rs/apply-name-terminate'
Code clean-up. * rs/apply-name-terminate: apply: remove unused parameters from name_terminate()
2 parents 29e54b0 + aa20cbc commit bf523da

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
@@ -442,7 +442,7 @@ static int is_dev_null(const char *str)
442442
#define TERM_SPACE 1
443443
#define TERM_TAB 2
444444

445-
static int name_terminate(const char *name, int namelen, int c, int terminate)
445+
static int name_terminate(int c, int terminate)
446446
{
447447
if (c == ' ' && !(terminate & TERM_SPACE))
448448
return 0;
@@ -671,7 +671,7 @@ static char *find_name_common(const char *line, const char *def,
671671
if (!end && isspace(c)) {
672672
if (c == '\n')
673673
break;
674-
if (name_terminate(start, line-start, c, terminate))
674+
if (name_terminate(c, terminate))
675675
break;
676676
}
677677
line++;

0 commit comments

Comments
 (0)