OSDN Git Service

sim: HW_NZALLOC: fix arg handling
authorvapier <vapier>
Wed, 29 Dec 2010 02:50:35 +0000 (02:50 +0000)
committervapier <vapier>
Wed, 29 Dec 2010 02:50:35 +0000 (02:50 +0000)
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>
sim/common/ChangeLog
sim/common/hw-alloc.h

index 5a368c9..085c1aa 100644 (file)
@@ -1,3 +1,7 @@
+2010-12-28  Mike Frysinger  <vapier@gentoo.org>
+
+       * hw-alloc.h (HW_NZALLOC): Change ME,TYPE,N to me,type,n.
+
 2010-12-15  Mike Frysinger  <vapier@gentoo.org>
 
        * sim-memopt.c (OPTION_MAP_INFO): Define.
index 3fb0380..699d017 100644 (file)
@@ -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);