Changeset 905 for trunk/dummyflasher.c


Ignore:
Timestamp:
Feb 16, 2010, 1:49:50 AM (5 years ago)
Author:
mkarcher
Message:

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.

Signed-off-by: Jonathan A. Kollasch <jakllsch@…>
Acked-by: Michael Karcher <flashrom@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dummyflasher.c

    r842 r905  
    3939        /* Convert the parameters to lowercase. */ 
    4040        for (i = 0; programmer_param[i] != '\0'; i++) 
    41                 programmer_param[i] = (char)tolower(programmer_param[i]); 
     41                programmer_param[i] = 
     42                    (char)tolower((unsigned char)programmer_param[i]); 
    4243 
    4344        buses_supported = CHIP_BUSTYPE_NONE; 
Note: See TracChangeset for help on using the changeset viewer.