summaryrefslogtreecommitdiff
path: root/builtin/apply.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2016-05-28 16:12:01 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-05-30 00:05:38 (GMT)
commitaa20cbc2e6cc39853dad688fcd7dc51132172fcd (patch)
tree949d4eb098f12af36c99a5c5d58ed2f64e3f076f /builtin/apply.c
parent765428699a5381f113d19974720bc91b5bfeaf1d (diff)
downloadgit-aa20cbc2e6cc39853dad688fcd7dc51132172fcd.zip
git-aa20cbc2e6cc39853dad688fcd7dc51132172fcd.tar.gz
git-aa20cbc2e6cc39853dad688fcd7dc51132172fcd.tar.bz2
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>
Diffstat (limited to 'builtin/apply.c')
-rw-r--r--builtin/apply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/apply.c b/builtin/apply.c
index 0769b09..5d1a15e 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++;