summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTill Straumann <strauman@slac.stanford.edu>2010-06-30 14:44:32 +0000
committerTill Straumann <strauman@slac.stanford.edu>2010-06-30 14:44:32 +0000
commitb284b109e2e52aa286e4cdd0f4f3cd43eb71e01c (patch)
tree1599441bca4683898ecc76ab1d47a93d7f20a8c0
parentd27c355f071db830013761b2783bf5ea8ef6de60 (diff)
downloadlibbsdport-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'.
-rw-r--r--bsd_eth_drivers/libbsdport/devicet.c2
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 */