diff options
author | Till Straumann <strauman@slac.stanford.edu> | 2010-06-30 14:44:32 +0000 |
---|---|---|
committer | Till Straumann <strauman@slac.stanford.edu> | 2010-06-30 14:44:32 +0000 |
commit | b284b109e2e52aa286e4cdd0f4f3cd43eb71e01c (patch) | |
tree | 1599441bca4683898ecc76ab1d47a93d7f20a8c0 /bsd_eth_drivers/libbsdport | |
parent | 2010-03-07 Till Straumann <Till.Straumann@TU-Berlin.de> (diff) | |
download | libbsdport-b284b109e2e52aa286e4cdd0f4f3cd43eb71e01c.tar.bz2 |
2010-06-30 Till Straumann <Till.Straumann@TU-Berlin.de>
* libbsdport/devicet.c: Silence compiler warnings by casting (char)
argument passed to 'ctype.h' functions [toupper + friends] ->
(unsigned char) as these functions expect 'int'.
Diffstat (limited to 'bsd_eth_drivers/libbsdport')
-rw-r--r-- | bsd_eth_drivers/libbsdport/devicet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd_eth_drivers/libbsdport/devicet.c b/bsd_eth_drivers/libbsdport/devicet.c index fde3975..923918f 100644 --- a/bsd_eth_drivers/libbsdport/devicet.c +++ b/bsd_eth_drivers/libbsdport/devicet.c @@ -145,7 +145,7 @@ get_name_unit(const char *drvnam, char *nm, int *punit) int l = strlen(drvnam); int i; if ( l > 0 ) { - for ( i=l-1; i>=0 && isdigit(drvnam[i]); i-- ) + for ( i=l-1; i>=0 && isdigit(((unsigned char)drvnam[i])); i-- ) /* nothing else to do */; if ( 1 != sscanf(drvnam+i,"%d",punit) ) *punit = 0; /* wildcard */ |