Skip to contentSkip to conversation

apply: remove unused parameters from name_terminate()

PATCH New René Scharfe 1 participant 1 message Jun 16, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 apply: remove unused parameters from name_terminate()

---
 builtin/apply.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
builtin/apply.c +2 -2
index 8e4da2e..c770d7d 100644
@@ -442,7 +442,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;
@@ -671,7 +671,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++;
Signature · 1 line
2.8.3