mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-27 15:00:16 +00:00
2010-03-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* libmisc/shell/shell_makeargs.c: Fix warnings.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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' )
|
||||
|
||||
Reference in New Issue
Block a user