]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (bsd) improve checksum calculation [-Waddress-of-packed-member]
authorKarel Zak <kzak@redhat.com>
Wed, 22 May 2019 15:42:48 +0000 (17:42 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 22 May 2019 15:47:04 +0000 (17:47 +0200)
commit04d0701ea8d031c1392aaa77b0faf03f99d1c7a0
tree8b8a79060feb40e463d1655ad656ea1254c1c376
parent16d7868fc1c6955fbcd5a825caad496c39ac3014
libfdisk: (bsd) improve checksum calculation [-Waddress-of-packed-member]

Let's keep compilers and static analyzers happy. The idea is to use
memcpy() to copy from buffer to variable and use all label as unsigned
char rather than vectorize by unsigned short.

Signed-off-by: Karel Zak <kzak@redhat.com>
libfdisk/src/bsd.c