[U-Boot-Users] byteorder of image_header_t members?
Steven Scholz
steven.scholz at imc-berlin.de
Fri Jun 10 13:51:40 CEST 2005
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
More information about the U-Boot
mailing list