public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] usbtty: invalid endianess defines
@ 2007-05-04 15:20 Rodolfo Giometti
  0 siblings, 0 replies; only message in thread
From: Rodolfo Giometti @ 2007-05-04 15:20 UTC (permalink / raw)
  To: u-boot

usbtty: invalid endianess defines.

Files include/linux/byteorder/{big,little}_endian.h define
__BIG_ENDIAN and __LITTLE_ENDIAN.

Signed-off-by: Rodolfo Giometti <giometti@linux.it>

---
-------------- next part --------------
diff --git a/drivers/usbtty.c b/drivers/usbtty.c
index d41a00b..a3b5013 100644
--- a/drivers/usbtty.c
+++ b/drivers/usbtty.c
@@ -381,12 +381,12 @@ static void str2wide (char *str, u16 * wide)
 {
 	int i;
 	for (i = 0; i < strlen (str) && str[i]; i++){
-		#if defined(__LITTLE_ENDIAN__)
+		#if defined(__LITTLE_ENDIAN)
 			wide[i] = (u16) str[i];
-		#elif defined(__BIG_ENDIAN__)
+		#elif defined(__BIG_ENDIAN)
 			wide[i] = ((u16)(str[i])<<8);
 		#else
-			#error "__LITTLE_ENDIAN__ or __BIG_ENDIAN__ undefined"
+			#error "__LITTLE_ENDIAN or __BIG_ENDIAN undefined"
 		#endif
 	}
 }

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-04 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-04 15:20 [U-Boot-Users] [PATCH] usbtty: invalid endianess defines Rodolfo Giometti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox