]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libfdisk: (sgi) 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:42:48 +0000 (17:42 +0200)
commit1a56f15b0fe047dfd85fa1a7aaddcc8504e403a6
tree02ad3b4e45b6d6821fd9d2fccf4b0d92ec106a28
parent34b0a305f6a86b18ce7c4ca2f9fc71dc89d6e1d4
libfdisk: (sgi) 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 uint32_t.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/pt-sgi.h