diff options
author | Jonathan A. Kollasch <jakllsch@kollasch.net> | 2010-02-16 00:49:50 +0000 |
---|---|---|
committer | Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> | 2010-02-16 00:49:50 +0000 |
commit | 903242ccb00e4555090aaa440384bae0596cbacf (patch) | |
tree | af68fc5ba8a397345deca2fc632c130e0e3ba01e /dummyflasher.c | |
parent | f5d8d856581c8a322db8afe6eee3665cdf6df887 (diff) | |
download | flashrom-903242ccb00e4555090aaa440384bae0596cbacf.zip flashrom-903242ccb00e4555090aaa440384bae0596cbacf.tar.gz |
More NetBSD fixes (w/ patch)
Cast input to tolower() to unsigned char to work around how tolower() is
implemented on NetBSD.
Also, use CPPFLAGS (rather than overriding CFLAGS) for the
NetBSD/DragonFly build example.
Corresponding to flashrom svn r905.
Signed-off-by: Jonathan A. Kollasch <jakllsch@kollasch.net>
Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'dummyflasher.c')
-rw-r--r-- | dummyflasher.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dummyflasher.c b/dummyflasher.c index 0f62d16..8ebd695 100644 --- a/dummyflasher.c +++ b/dummyflasher.c @@ -38,7 +38,8 @@ int dummy_init(void) programmer_param = strdup("parallel,lpc,fwh,spi"); /* Convert the parameters to lowercase. */ for (i = 0; programmer_param[i] != '\0'; i++) - programmer_param[i] = (char)tolower(programmer_param[i]); + programmer_param[i] = + (char)tolower((unsigned char)programmer_param[i]); buses_supported = CHIP_BUSTYPE_NONE; if (strstr(programmer_param, "parallel")) { |