[PATCH 2/4] chacha20-ppc: silence GCC cast alignment warning

Jussi Kivilinna <[email protected]>
Newsgroups gmane.comp.encryption.gpg.libgcrypt.devel
Message-ID <[email protected]>
* cipher/chacha20-ppc.c (vec_load_le, vec_store_le): Cast
pointers through void pointer type.
--

Signed-off-by: Jussi Kivilinna <[email protected]>
---
 cipher/chacha20-ppc.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cipher/chacha20-ppc.c b/cipher/chacha20-ppc.c
index 994b6a01..fe991b08 100644
--- a/cipher/chacha20-ppc.c
+++ b/cipher/chacha20-ppc.c
@@ -65,7 +65,7 @@ vec_rol_elems(vector4x_u32 v, unsigned int idx)
 
 
 static ASM_FUNC_ATTR_INLINE vector4x_u32
-vec_load_le(unsigned long offset, const unsigned char *ptr)
+vec_load_le(unsigned long offset, const void *ptr)
 {
   vector4x_u32 vec;
   vec = vec_vsx_ld (offset, (const u32 *)ptr);
@@ -78,7 +78,7 @@ vec_load_le(unsigned long offset, const unsigned char *ptr)
 
 
 static ASM_FUNC_ATTR_INLINE void
-vec_store_le(vector4x_u32 vec, unsigned long offset, unsigned char *ptr)
+vec_store_le(vector4x_u32 vec, unsigned long offset, void *ptr)
 {
 #ifdef WORDS_BIGENDIAN
   vec = (vector4x_u32)vec_perm((vector16x_u8)vec, (vector16x_u8)vec,
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.