From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28394 invoked by alias); 29 Dec 2010 01:52:53 -0000 Received: (qmail 28282 invoked by uid 22791); 29 Dec 2010 01:52:52 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp.gentoo.org (HELO smtp.gentoo.org) (140.211.166.183) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Dec 2010 01:52:47 +0000 Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id E4EE31B4030; Wed, 29 Dec 2010 01:52:44 +0000 (UTC) From: Mike Frysinger To: gdb-patches@sourceware.org Cc: toolchain-devel@blackfin.uclinux.org Subject: [PATCH] sim: HW_NZALLOC: fix arg handling Date: Wed, 29 Dec 2010 02:12:00 -0000 Message-Id: <1293587541-16750-1-git-send-email-vapier@gentoo.org> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2010-12/txt/msg00527.txt.bz2 The HW_NZALLOC macro has all caps args for some reason (unlike the other alloc helpers), and ends up not using the "ME" argument since its copy and paste source uses "me". Make all the args lowercase to match the style of all the other args and make it use the correct "me". Signed-off-by: Mike Frysinger 2010-12-28 Mike Frysinger * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n. --- sim/common/hw-alloc.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/sim/common/hw-alloc.h b/sim/common/hw-alloc.h index 3fb0380..699d017 100644 --- a/sim/common/hw-alloc.h +++ b/sim/common/hw-alloc.h @@ -33,7 +33,7 @@ along with this program. If not, see . */ #define HW_ZALLOC(me,type) (type*) hw_zalloc (me, sizeof (type)) #define HW_MALLOC(me,type) (type*) hw_malloc (me, sizeof (type)) -#define HW_NZALLOC(ME,TYPE,N) (TYPE*) hw_zalloc (me, sizeof (TYPE) * (N)) +#define HW_NZALLOC(me,type,n) (type*) hw_zalloc (me, sizeof (type) * (n)) extern void *hw_zalloc (struct hw *me, unsigned long size); extern void *hw_malloc (struct hw *me, unsigned long size); -- 1.7.3.1