<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">
From: Tobias Klauser &lt;tklauser@nuerscht.ch&gt;

Replace the custom CHAR_IS_NUM() macro with isdigit() from &lt;linux/ctype.h&gt;

Signed-off-by: Tobias Klauser &lt;tklauser@nuerscht.ch&gt;
Cc: "Antonino A. Daplas" &lt;adaplas@pol.net&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
---

 drivers/video/pm3fb.c |    3 ++-
 include/video/pm3fb.h |    3 ---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff -puN drivers/video/pm3fb.c~drivers-video-replace-custom-macro-with-isdigit drivers/video/pm3fb.c
--- devel/drivers/video/pm3fb.c~drivers-video-replace-custom-macro-with-isdigit	2005-09-10 14:45:48.000000000 -0700
+++ devel-akpm/drivers/video/pm3fb.c	2005-09-10 14:45:48.000000000 -0700
@@ -67,6 +67,7 @@
 #include &lt;linux/init.h&gt;
 #include &lt;linux/pci.h&gt;
 #include &lt;linux/ioport.h&gt;
+#include &lt;linux/ctype.h&gt;
 
 #include &lt;video/fbcon.h&gt;
 #include &lt;video/fbcon-mfb.h&gt;
@@ -2594,7 +2595,7 @@ static char *pm3fb_boardnum_setup(char *
 {
 	char *next;
 
-	if (!(CHAR_IS_NUM(options[0]))) {
+	if (!(isdigit(options[0]))) {
 		(*bn) = 0;
 		return (options);
 	}
diff -puN include/video/pm3fb.h~drivers-video-replace-custom-macro-with-isdigit include/video/pm3fb.h
--- devel/include/video/pm3fb.h~drivers-video-replace-custom-macro-with-isdigit	2005-09-10 14:45:48.000000000 -0700
+++ devel-akpm/include/video/pm3fb.h	2005-09-10 14:45:48.000000000 -0700
@@ -1142,9 +1142,6 @@
 /* do we want accelerated console  */
 #define PM3FB_USE_ACCEL 1
 
-/* useful ? */
-#define CHAR_IS_NUM(a)  ((((a) &gt;= '0') &amp;&amp; ((a) &lt;= '9')) ? 1 : 0)
-
 /* for driver debugging ONLY */
 /* 0 = assert only, 1 = error, 2 = info, 3+ = verbose */
 /* define PM3FB_MASTER_DEBUG 1 */
_
</pre></body></html>