diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-07-14 18:51:00 +0200 |
---|---|---|
committer | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-07-16 22:17:22 +0000 |
commit | ade317a281652354cb3d86d40a8c012b32f28497 (patch) | |
tree | 1ed8e7976e5ee232d56a4c67c20d57a96cba4133 /include | |
parent | 06e921b185f4f7af0a51bb2451cd56eb6c5b26da (diff) | |
download | u-boot-ade317a281652354cb3d86d40a8c012b32f28497.zip u-boot-ade317a281652354cb3d86d40a8c012b32f28497.tar.gz u-boot-ade317a281652354cb3d86d40a8c012b32f28497.tar.bz2 |
efi_loader: avoid alignment error
In packed structures GUIDs are not aligned. Avoid a build error with
GCC 9.1 by using const void * as argument for guidcmp().
Reported-by: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/efi_loader.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/efi_loader.h b/include/efi_loader.h index 6cc6a38..5298ea7 100644 --- a/include/efi_loader.h +++ b/include/efi_loader.h @@ -567,7 +567,7 @@ static inline void ascii2unicode(u16 *unicode, const char *ascii) *unicode = 0; } -static inline int guidcmp(const efi_guid_t *g1, const efi_guid_t *g2) +static inline int guidcmp(const void *g1, const void *g2) { return memcmp(g1, g2, sizeof(efi_guid_t)); } |