public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] byteorder of image_header_t members?
@ 2005-06-10 11:51 Steven Scholz
  2005-06-10 14:17 ` Wolfgang Denk
  2005-06-10 15:05 ` Steven Scholz
  0 siblings, 2 replies; 5+ messages in thread
From: Steven Scholz @ 2005-06-10 11:51 UTC (permalink / raw)
  To: u-boot

Hi there,

if uint32_t members of image_header_t are stored in network byteorder, then 
all references of these members should use ntohl(), right?

So should we fix this for instance:

#~> grep "\->ih_magic" *
cmd_autoscript.c:	if (ntohl(hdr->ih_magic) != IH_MAGIC) {
cmd_bootm.c:		if (ntohl(hdr->ih_magic) != IH_MAGIC) {
 >>> cmd_bootm.c:	if (hdr->ih_magic  != IH_MAGIC) {	<<<
cmd_bootm.c:		if (ntohl(hdr->ih_magic) != IH_MAGIC) {
cmd_bootm.c:		(ntohl(hdr->ih_magic) != IH_MAGIC))
 >>> cmd_doc.c:		if (hdr->ih_magic == IH_MAGIC) {	<<<
 >>> cmd_fdc.c:		if (hdr->ih_magic  != IH_MAGIC) {	<<<
cmd_fpga.c:		if (ntohl(hdr->ih_magic)  != IH_MAGIC) {
cmd_ide.c:		if (ntohl(hdr->ih_magic) != IH_MAGIC) {
cmd_nand.c:		if (ntohl(hdr->ih_magic) == IH_MAGIC) {
cmd_scsi.c:		if (ntohl(hdr->ih_magic) == IH_MAGIC) {
cmd_usb.c:		if (ntohl(hdr->ih_magic) != IH_MAGIC) {



-- 
Steven

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-03-12  1:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-10 11:51 [U-Boot-Users] byteorder of image_header_t members? Steven Scholz
2005-06-10 14:17 ` Wolfgang Denk
2005-06-10 15:05 ` Steven Scholz
2005-11-22  9:34   ` Steven Scholz
2006-03-12  1:00   ` Wolfgang Denk

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