Thread (89 messages) 89 messages, 3 authors, 2016-06-15

[PATCH 41/86] shell: replace prefixcmd() with has_prefix()

flat view
STALE3769d

From: Christian Couder <hidden>
Date: 2016-06-15 22:59:12
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Christian Couder <redacted>
---
 shell.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shell.c b/shell.c
index 66350b2..3bbe774 100644
--- a/shell.c
+++ b/shell.c
@@ -15,7 +15,7 @@ static int do_generic_cmd(const char *me, char *arg)
 	setup_path();
 	if (!arg || !(arg = sq_dequote(arg)))
 		die("bad argument");
-	if (prefixcmp(me, "git-"))
+	if (!has_prefix(me, "git-"))
 		die("bad command");
 
 	my_argv[0] = me + 4;
-- 
1.8.4.1.566.geca833c
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help