aboutsummaryrefslogtreecommitdiffstats
path: root/os/various
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-23 09:40:59 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-12-23 09:40:59 +0000
commit5e807d8128d9d321e172d61fee6c29fa75c03378 (patch)
tree2e108899264974f9b6e6c5025c43e277c69c51d5 /os/various
parent5f75c012225c31032caa800977312bed2b2590fb (diff)
downloadChibiOS-5e807d8128d9d321e172d61fee6c29fa75c03378.tar.gz
ChibiOS-5e807d8128d9d321e172d61fee6c29fa75c03378.tar.bz2
ChibiOS-5e807d8128d9d321e172d61fee6c29fa75c03378.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1457 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/various')
-rw-r--r--os/various/shell.c6
1 files changed, 3 insertions, 3 deletions
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 ");