From bc7e87b96178b1356e9b93b8e1f1192206fa44c0 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Wed, 17 Nov 2010 16:30:32 -0600 Subject: [PATCH] RTEMS: Warning cleanups from Eric. --- src/RTEMS/base/setBootConfigFromNVRAM.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/RTEMS/base/setBootConfigFromNVRAM.c b/src/RTEMS/base/setBootConfigFromNVRAM.c index 435bb6853..6a162c602 100644 --- a/src/RTEMS/base/setBootConfigFromNVRAM.c +++ b/src/RTEMS/base/setBootConfigFromNVRAM.c @@ -133,12 +133,13 @@ motScriptParm(const char *mot_script_boot, char parm) int l; while (*mot_script_boot != '\0') { - if (isspace(*mot_script_boot) + if (isspace(*(unsigned char *)mot_script_boot) && (*(mot_script_boot+1) == '-') && (*(mot_script_boot+2) == parm)) { mot_script_boot += 3; cp = mot_script_boot; - while ((*mot_script_boot != '\0') && !isspace(*mot_script_boot)) + while ((*mot_script_boot != '\0') && + !isspace(*(unsigned char *)mot_script_boot)) mot_script_boot++; l = mot_script_boot - cp; ret = malloc(l+1);