Changeset b284b10 in libbsdport


Ignore:
Timestamp:
Jun 30, 2010, 2:44:32 PM (9 years ago)
Author:
Till Straumann <strauman@…>
Branches:
master
Children:
3cee687
Parents:
d27c355
Message:

2010-06-30 Till Straumann <Till.Straumann@…>

  • libbsdport/devicet.c: Silence compiler warnings by casting (char) argument passed to 'ctype.h' functions [toupper + friends] -> (unsigned char) as these functions expect 'int'.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • bsd_eth_drivers/libbsdport/devicet.c

    rd27c355 rb284b10  
    146146int i;
    147147        if ( l > 0 ) {
    148                 for ( i=l-1; i>=0 && isdigit(drvnam[i]); i-- )
     148                for ( i=l-1; i>=0 && isdigit(((unsigned char)drvnam[i])); i-- )
    149149                        /* nothing else to do */;
    150150                if ( 1 != sscanf(drvnam+i,"%d",punit) )
Note: See TracChangeset for help on using the changeset viewer.