diff options
author | Jonathan Kollasch <jakllsch@kollasch.net> | 2011-04-19 19:34:25 +0000 |
---|---|---|
committer | Jonathan A. Kollasch <jakllsch@kollasch.net> | 2011-04-19 19:34:25 +0000 |
commit | 1571dc96372899c802e37e7d530acc2ba4848195 (patch) | |
tree | c093914ab74359aaca490cd446d13afa181a8511 /util/nvramtool/cli/nvramtool.c | |
parent | 4c50cb24576d962ef266cc6d24123c5ec0c5fae1 (diff) | |
download | coreboot-1571dc96372899c802e37e7d530acc2ba4848195.tar.xz |
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/cli/nvramtool.c')
-rw-r--r-- | util/nvramtool/cli/nvramtool.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util/nvramtool/cli/nvramtool.c b/util/nvramtool/cli/nvramtool.c index 9bc3e4e525..bc929da698 100644 --- a/util/nvramtool/cli/nvramtool.c +++ b/util/nvramtool/cli/nvramtool.c @@ -800,7 +800,7 @@ static int list_cmos_entry(const cmos_entry_t * e, int show_name) case CMOS_ENTRY_STRING: w = (char *)(unsigned long)value; while (*w) { - if(!isprint(*w)) { + if(!isprint((int)(unsigned char)*w)) { if (show_name) printf("# Bad value -> %s\n", e->name); else @@ -846,7 +846,7 @@ static uint16_t convert_checksum_value(const char value[]) uint16_t result; int negative; - for (p = value; isspace(*p); p++) ; + for (p = value; isspace((int)(unsigned char)*p); p++) ; negative = (*p == '-'); n = strtoul(value, (char **)&p, 0); |