Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
apply: remove unused parameters from name_terminate()
author
René Scharfe
<l.s.r@web.de>
Sat, 28 May 2016 16:12:01 +0000
(18:12 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 30 May 2016 00:05:38 +0000
(17:05 -0700)
Signed-off-by: Rene Scharfe <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
7654286
)
diff --git
a/builtin/apply.c
b/builtin/apply.c
index 0769b09287b2bcf6b3f85ff503a396fa245c31a0..5d1a15e4f62307b14520f8759b7eeaf924feda7d 100644
(file)
--- 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++;