summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2016-05-28 18:12:01 +0200
committerJunio C Hamano <gitster@pobox.com>2016-05-29 17:05:38 -0700
commitaa20cbc2e6cc39853dad688fcd7dc51132172fcd (patch)
tree949d4eb098f12af36c99a5c5d58ed2f64e3f076f /builtin
parent765428699a5381f113d19974720bc91b5bfeaf1d (diff)
downloadgit-aa20cbc2e6cc39853dad688fcd7dc51132172fcd.tar.gz
apply: remove unused parameters from name_terminate()rs/apply-name-terminate
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/apply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/apply.c b/builtin/apply.c
index 0769b09287..5d1a15e4f6 100644
--- a/builtin/apply.c
+++ b/builtin/apply.c
@@ -443,7 +443,7 @@ static int is_dev_null(const char *str)
#define TERM_SPACE 1
#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))
return 0;
@@ -672,7 +672,7 @@ static char *find_name_common(const char *line, const char *def,
if (!end && isspace(c)) {
if (c == '\n')
break;
- if (name_terminate(start, line-start, c, terminate))
+ if (name_terminate(c, terminate))
break;
}
line++;