2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>

* libmisc/shell/shell_makeargs.c: Fix warnings.
This commit is contained in:
Joel Sherrill
2010-03-11 15:53:12 +00:00
parent 7209b4c516
commit 06443cfa4b
2 changed files with 7 additions and 2 deletions

View File

@@ -1,3 +1,7 @@
2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shell_makeargs.c: Fix warnings.
2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1458/cpukit

View File

@@ -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' )