From b284b109e2e52aa286e4cdd0f4f3cd43eb71e01c Mon Sep 17 00:00:00 2001 From: Till Straumann Date: Wed, 30 Jun 2010 14:44:32 +0000 Subject: 2010-06-30 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'. --- bsd_eth_drivers/libbsdport/devicet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bsd_eth_drivers/libbsdport') 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 */ -- cgit v1.2.3