diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-11 15:53:12 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2010-03-11 15:53:12 +0000 |
commit | 06443cfa4b6ae5abcdbf52337d91dd7c5f582d35 (patch) | |
tree | 609085a330b08efa3052eac46ad087194f8b594e /cpukit/libmisc/shell | |
parent | 2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-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.c | 5 |
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' ) |