aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/wlan-ng
diff options
context:
space:
mode:
authorMoritz Muehlenhoff <jmm@debian.org>2009-01-25 21:55:02 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2009-04-03 14:53:18 -0700
commit0b98de32d76d0667007d86ccae1c458b52ca457f (patch)
tree8f0af4b5e8e26a5c71c40addfb0f40177b1dcadc /drivers/staging/wlan-ng
parent9b9556ecc4bd8279aec195de84fd7d45a9883547 (diff)
Staging: wlan-ng: Replace wlan_isprint() with generic isprint()
Signed-off-by: Moritz Muehlenhoff <jmm@debian.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/wlan-ng')
-rw-r--r--drivers/staging/wlan-ng/wlan_compat.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/wlan-ng/wlan_compat.h b/drivers/staging/wlan-ng/wlan_compat.h
index f9e97e6c997..60aaccb11e3 100644
--- a/drivers/staging/wlan-ng/wlan_compat.h
+++ b/drivers/staging/wlan-ng/wlan_compat.h
@@ -57,6 +57,7 @@
#endif
#include <linux/hardirq.h>
+#include <linux/ctype.h>
#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 { \