From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from server1.nuerscht.info (nuerscht.net [85.10.196.104]) by ozlabs.org (Postfix) with ESMTP id A351F6823F for ; Sat, 10 Sep 2005 22:49:52 +1000 (EST) Date: Sat, 10 Sep 2005 14:16:33 +0200 From: Tobias Klauser To: kernel-janitors@lists.osdl.org Message-ID: <20050910121633.GC1218@neon.tklauser.home> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: akpm@osdl.org, linuxppc-dev@ozlabs.org Subject: [PATCH 2/4] arch/ppc: Replace custom macro with isdigit() List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Replace the custom is_digit() macro with isdigit() from Signed-off-by: Tobias Klauser --- arch/ppc/boot/common/misc-common.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff -urpN -X dontdiff linux-2.6.13/arch/ppc/boot/common/misc-common.c linux-2.6.13~macro_removal/arch/ppc/boot/common/misc-common.c --- linux-2.6.13/arch/ppc/boot/common/misc-common.c 2005-08-29 01:41:01.000000000 +0200 +++ linux-2.6.13~macro_removal/arch/ppc/boot/common/misc-common.c 2005-09-10 12:38:31.000000000 +0200 @@ -16,6 +16,7 @@ #include /* for va_ bits */ #include +#include #include #include #include "nonstdio.h" @@ -301,8 +302,6 @@ _printk(char const *fmt, ...) return; } -#define is_digit(c) ((c >= '0') && (c <= '9')) - void _vprintk(void(*putc)(const char), const char *fmt0, va_list ap) { @@ -329,7 +328,7 @@ _vprintk(void(*putc)(const char), const { zero_fill = FALSE; } - while (is_digit(c)) + while (isdigit(c)) { left_prec = (left_prec * 10) + (c - '0'); c = *fmt0++; @@ -338,7 +337,7 @@ _vprintk(void(*putc)(const char), const { c = *fmt0++; zero_fill++; - while (is_digit(c)) + while (isdigit(c)) { right_prec = (right_prec * 10) + (c - '0'); c = *fmt0++;