{"thread":{"id":"42475","subject":"[PATCH] apply: remove unused parameters from name_terminate()","startedAt":"2016-05-28T16:12:01Z","lastAt":"2016-05-28T16:12:01Z","messageCount":1,"participants":["René Scharfe"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"287749","messageId":"5749C351.8070806@web.de","threadId":"42475","inReplyTo":null,"subject":"[PATCH] apply: remove unused parameters from name_terminate()","fromName":"René Scharfe","fromEmail":"l.s.r@web.de","sentAt":"2016-05-28T16:12:01Z","receivedAt":"2016-05-28T16:12:01Z","isPatch":true,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Signed-off-by: Rene Scharfe <l.s.r@web.de>\n---\n builtin/apply.c | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/builtin/apply.c b/builtin/apply.c\nindex 8e4da2e..c770d7d 100644\n--- a/builtin/apply.c\n+++ b/builtin/apply.c\n@@ -442,7 +442,7 @@ static int is_dev_null(const char *str)\n #define TERM_SPACE\t1\n #define TERM_TAB\t2\n \n-static int name_terminate(const char *name, int namelen, int c, int terminate)\n+static int name_terminate(int c, int terminate)\n {\n \tif (c == ' ' && !(terminate & TERM_SPACE))\n \t\treturn 0;\n@@ -671,7 +671,7 @@ static char *find_name_common(const char *line, const char *def,\n \t\tif (!end && isspace(c)) {\n \t\t\tif (c == '\\n')\n \t\t\t\tbreak;\n-\t\t\tif (name_terminate(start, line-start, c, terminate))\n+\t\t\tif (name_terminate(c, terminate))\n \t\t\t\tbreak;\n \t\t}\n \t\tline++;\n-- \n2.8.3\n"}]}