Ignore:
Timestamp:
2011-06-21T23:13:58+02:00 (5 years ago)
Author:
hauke
Message:

firmware-utils: fix build on big endian systems

This closes #9446

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/firmware-utils/src/trx2edips.c

    r26543 r27255  
    158158        memcpy(buf + LOAD32_LE(p->offsets[2]) - EDIMAX_HDR_LEN, buf + LOAD32_LE(p->offsets[2]), length - LOAD32_LE(p->offsets[2])); 
    159159        /* recompute the crc32 check */ 
    160         p->crc32 = STORE32_LE(crc32buf((char *) &(LOAD32_LE(p->flag_version)), length - offsetof(struct trx_header, flag_version))); 
     160        p->crc32 = STORE32_LE(crc32buf((char *) &p->flag_version, length - offsetof(struct trx_header, flag_version))); 
    161161 
    162162        eh.sign = STORE32_LE(EDIMAX_PS16); 
Note: See TracChangeset for help on using the changeset viewer.