From 5e807d8128d9d321e172d61fee6c29fa75c03378 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Wed, 23 Dec 2009 09:40:59 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1457 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/various/shell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'os') diff --git a/os/various/shell.c b/os/various/shell.c index 26bf68e2e..b8423e147 100644 --- a/os/various/shell.c +++ b/os/various/shell.c @@ -119,7 +119,7 @@ static bool_t cmdexec(const ShellCommand *scp, BaseChannel *chp, char *name, int argc, char *argv[]) { while (scp->sc_name != NULL) { - if (strcmpi(scp->sc_name, name) == 0) { + if (strcasecmp(scp->sc_name, name) == 0) { scp->sc_function(chp, argc, argv); return FALSE; } @@ -165,12 +165,12 @@ static msg_t shell_thread(void *p) { } args[n] = NULL; if (cmd != NULL) { - if (strcmpi(cmd, "exit") == 0) { + if (strcasecmp(cmd, "exit") == 0) { if (n > 0) usage(chp, "exit"); break; } - else if (strcmpi(cmd, "help") == 0) { + else if (strcasecmp(cmd, "help") == 0) { if (n > 0) usage(chp, "help"); shellPrint(chp, "Commands: help exit "); -- cgit v1.2.3