aboutsummaryrefslogtreecommitdiff
path: root/sim/common/hw-alloc.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-29 02:50:35 +0000
committerMike Frysinger <vapier@gentoo.org>2010-12-29 02:50:35 +0000
commite61ddca7faeabdba9543dd205e3f3c7e8a58020f (patch)
tree30b0d973b2df938b9dd71025fc45c4be8637f044 /sim/common/hw-alloc.h
parentebcd3b23ee08bb41a5492dce554c810eb59f895d (diff)
downloadbinutils-e61ddca7faeabdba9543dd205e3f3c7e8a58020f.zip
binutils-e61ddca7faeabdba9543dd205e3f3c7e8a58020f.tar.gz
binutils-e61ddca7faeabdba9543dd205e3f3c7e8a58020f.tar.bz2
sim: HW_NZALLOC: fix arg handling
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 <vapier@gentoo.org>
Diffstat (limited to 'sim/common/hw-alloc.h')
-rw-r--r--sim/common/hw-alloc.h2
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 <http://www.gnu.org/licenses/>. */
#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);