projects
/
coreboot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add SMSC SCH3114 superio register descriptions to superiotool.
[coreboot.git]
/
util
/
nvramtool
/
cmos_ops.c
diff --git
a/util/nvramtool/cmos_ops.c
b/util/nvramtool/cmos_ops.c
index 73d68e0a23bc7a05ec274eaa40ea457821d1095d..2bbc8a1df6fe19014168a74a84ebf027f2e2a9a1 100644
(file)
--- a/
util/nvramtool/cmos_ops.c
+++ b/
util/nvramtool/cmos_ops.c
@@
-122,10
+122,10
@@
int prepare_cmos_write(const cmos_entry_t * e, const char value_str[],
break;
case CMOS_ENTRY_HEX:
break;
case CMOS_ENTRY_HEX:
- /* See if the first character of 'value_str' (excluding
+ /* See if the first character of 'value_str' (excluding
* any initial whitespace) is a minus sign.
*/
* 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);
negative = (*p == '-');
out = strtoull(value_str, (char **)&p, 0);