1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-11-27 17:55:55 +02:00

backport r21848 and r24000

git-svn-id: svn://svn.openwrt.org/openwrt/branches/backfire@24009 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2010-11-15 18:38:58 +00:00
parent 4405aa6006
commit 5b4dbc058d

View File

@ -32,9 +32,9 @@ union int2char {
char output[4];
};
/* This appears to be necessary due to alignment issues */
/* Convert uint32_t CRC to bigendian and copy it into a character array */
#define int2tag(tag, value) intchar.input = htonl(value); \
strncpy(tag, intchar.output, sizeof(union int2char))
memcpy(tag, intchar.output, sizeof(union int2char))
/* Kernel header */
struct kernelhdr {