[PATCH 2/6] netX: use correct sized pointers

Juergen Beisert jbe at pengutronix.de
Fri Apr 20 09:06:13 EDT 2012


Signed-off-by: Juergen Beisert <jbe at pengutronix.de>
---
 arch/arm/mach-netx/generic.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-netx/generic.c b/arch/arm/mach-netx/generic.c
index e4763c6..f9d643f 100644
--- a/arch/arm/mach-netx/generic.c
+++ b/arch/arm/mach-netx/generic.c
@@ -63,7 +63,7 @@ static int xc_patch(int xcno, void *patch, int count)
 static void memset32(void *s, int c, int n)
 {
 	int i;
-	unsigned int *t = s;
+	u32 *t = s;
 
 	for (i = 0; i < (n >> 2); i++)
 		*t++ = 0;
@@ -72,8 +72,8 @@ static void memset32(void *s, int c, int n)
 static void memcpy32(void *trg, void *src, int size)
 {
 	int i;
-	unsigned int *t = trg;
-	unsigned int *s = src;
+	u32 *t = trg;
+	u32 *s = src;
 	for (i = 0; i < (size >> 2); i++)
 		*t++ = *s++;
 }
-- 
1.7.10




More information about the barebox mailing list