diff options
author | René Scharfe <l.s.r@web.de> | 2016-05-28 18:12:01 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-05-29 17:05:38 -0700 |
commit | aa20cbc2e6cc39853dad688fcd7dc51132172fcd (patch) | |
tree | 949d4eb098f12af36c99a5c5d58ed2f64e3f076f | |
parent | Git 2.4.11 (diff) | |
download | tgif-aa20cbc2e6cc39853dad688fcd7dc51132172fcd.tar.xz |
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>
-rw-r--r-- | builtin/apply.c | 4 |
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++; |