aboutsummaryrefslogtreecommitdiff
path: root/util/nvramtool/cmos_ops.c
diff options
context:
space:
mode:
authorJonathan Kollasch <jakllsch@kollasch.net>2011-04-19 19:34:25 +0000
committerJonathan A. Kollasch <jakllsch@kollasch.net>2011-04-19 19:34:25 +0000
commit1571dc96372899c802e37e7d530acc2ba4848195 (patch)
treec093914ab74359aaca490cd446d13afa181a8511 /util/nvramtool/cmos_ops.c
parent4c50cb24576d962ef266cc6d24123c5ec0c5fae1 (diff)
Cast arguments to ctype(3) functions through (int)(unsigned char).
Signed-Off-By: Jonathan Kollasch <jakllsch@kollasch.net> Acked-By: Jonathan Kollasch <jakllsch@kollasch.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@6519 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/nvramtool/cmos_ops.c')
-rw-r--r--util/nvramtool/cmos_ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/nvramtool/cmos_ops.c b/util/nvramtool/cmos_ops.c
index 86ffe1022b..2bbc8a1df6 100644
--- a/util/nvramtool/cmos_ops.c
+++ b/util/nvramtool/cmos_ops.c
@@ -125,7 +125,7 @@ int prepare_cmos_write(const cmos_entry_t * e, const char value_str[],
/* See if the first character of 'value_str' (excluding
* any initial whitespace) is a minus sign.
*/
- for (p = value_str; isspace(*p); p++) ;
+ for (p = value_str; isspace((int)(unsigned char)*p); p++) ;
negative = (*p == '-');
out = strtoull(value_str, (char **)&p, 0);