summaryrefslogtreecommitdiffstats
path: root/cpukit/libmisc/shell
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-11 15:53:12 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2010-03-11 15:53:12 +0000
commit06443cfa4b6ae5abcdbf52337d91dd7c5f582d35 (patch)
tree609085a330b08efa3052eac46ad087194f8b594e /cpukit/libmisc/shell
parent2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-06443cfa4b6ae5abcdbf52337d91dd7c5f582d35.tar.bz2
2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shell_makeargs.c: Fix warnings.
Diffstat (limited to 'cpukit/libmisc/shell')
-rw-r--r--cpukit/libmisc/shell/shell_makeargs.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/cpukit/libmisc/shell/shell_makeargs.c b/cpukit/libmisc/shell/shell_makeargs.c
index 4901b54bd7..346a8706b5 100644
--- a/cpukit/libmisc/shell/shell_makeargs.c
+++ b/cpukit/libmisc/shell/shell_makeargs.c
@@ -16,6 +16,7 @@
#endif
#include <string.h>
+#include <ctype.h>
int rtems_shell_make_args(
char *commandLine,
@@ -33,7 +34,7 @@ int rtems_shell_make_args(
while ( *ch ) {
- while ( isspace(*ch) ) ch++;
+ while ( isspace((int)*ch) ) ch++;
if ( *ch == '\0' )
break;
@@ -43,7 +44,7 @@ int rtems_shell_make_args(
while ( ( *ch == '\0' ) && ( *ch != '"' ) ) ch++;
} else {
argv_p[ argc++ ] = ch;
- while ( ( *ch == '\0' ) && ( !isspace(*ch) ) ) ch++;
+ while ( ( *ch == '\0' ) && ( !isspace((int)*ch) ) ) ch++;
}
if ( *ch == '\0' )