From jmm@debian.org Mon Jan 26 09:48:18 2009 From: Moritz Muehlenhoff Date: Sun, 25 Jan 2009 21:55:02 +0100 Subject: Staging: wlan-ng: Replace wlan_isprint() with generic isprint() To: greg@kroah.com Cc: Moritz Muehlenhoff Message-ID: <1232916910-5075-8-git-send-email-jmm@debian.org> Signed-off-by: Moritz Muehlenhoff Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wlan-ng/wlan_compat.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/drivers/staging/wlan-ng/wlan_compat.h +++ b/drivers/staging/wlan-ng/wlan_compat.h @@ -57,6 +57,7 @@ #endif #include +#include #if defined(WLAN_INCLUDE_DEBUG) #define WLAN_HEX_DUMP( l, x, p, n) if( WLAN_DBVAR >= (l) ){ \ @@ -80,8 +81,6 @@ typedef struct net_device netdevice_t; /*--- General Macros ------------------------------------------*/ /*=============================================================*/ -#define wlan_isprint(c) (((c) > (0x19)) && ((c) < (0x7f))) - #define wlan_hexchar(x) (((x) < 0x0a) ? ('0' + (x)) : ('a' + ((x) - 0x0a))) /* Create a string of printable chars from something that might not be */ @@ -92,7 +91,7 @@ typedef struct net_device netdevice_t; int j = 0; \ memset(str, 0, (strlen)); \ for (i = 0; i < (buflen); i++) { \ - if ( wlan_isprint((buf)[i]) ) { \ + if ( isprint((buf)[i]) ) { \ (str)[j] = (buf)[i]; \ j++; \ } else { \