public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Rodolfo Giometti <giometti@enneenne.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] usbtty: invalid endianess defines
Date: Fri, 4 May 2007 17:20:51 +0200	[thread overview]
Message-ID: <20070504152051.GB11070@enneenne.com> (raw)

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
 	}
 }

                 reply	other threads:[~2007-05-04 15:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070504152051.GB11070@enneenne.com \
    --to=giometti@enneenne.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox