1
0
Fork 0

samsung: fix mkorigenspl for darwin

Compiling the mkorigenspl tool on darwin complains about undefined ulong. Fix
this by using the unified way.

Signed-off-by: Andreas Bießmann <andreas.devel@googlemail.com>
utp
Andreas Bießmann 2016-02-16 23:29:30 +01:00 committed by Tom Rini
parent c6e3e8213a
commit 2e33df807c
1 changed files with 2 additions and 2 deletions

View File

@ -83,8 +83,8 @@ int main(int argc, char **argv)
for (i = 0; i < IMG_SIZE - SPL_HEADER_SIZE; i++)
checksum += buffer[i+16];
*(ulong *)buffer ^= 0x1f;
*(ulong *)(buffer+4) ^= checksum;
*(unsigned long *)buffer ^= 0x1f;
*(unsigned long *)(buffer+4) ^= checksum;
for (i = 1; i < SPL_HEADER_SIZE; i++)
buffer[i] ^= buffer[i-1];