>From acfc6a5956133b2e357f3c028e51d5e75fa86140 Mon Sep 17 00:00:00 2001 From: Frank Dittrich Date: Thu, 5 Jul 2012 19:08:22 +0200 Subject: [PATCH] Silence -Wpointer-sign warnings in /hmacSHA*_fmt_plug.c --- src/hmacSHA224_fmt_plug.c | 2 +- src/hmacSHA256_fmt_plug.c | 2 +- src/hmacSHA384_fmt_plug.c | 2 +- src/hmacSHA512_fmt_plug.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/hmacSHA224_fmt_plug.c b/src/hmacSHA224_fmt_plug.c index e7df41a..6c46675 100644 --- a/src/hmacSHA224_fmt_plug.c +++ b/src/hmacSHA224_fmt_plug.c @@ -40,7 +40,7 @@ static union xx { unsigned char c[BINARY_SIZE+1]; ARCH_WORD a[BINARY_SIZE/sizeof(ARCH_WORD)+1]; } u; -static char *crypt_key = u.c; // Requires alignment on generic sha2.c +static char *crypt_key = (char *)u.c; // Requires alignment on generic sha2.c static unsigned char opad[PAD_SIZE]; static unsigned char ipad[PAD_SIZE]; static unsigned char cursalt[SALT_SIZE]; diff --git a/src/hmacSHA256_fmt_plug.c b/src/hmacSHA256_fmt_plug.c index 919455e..dcf31ca 100644 --- a/src/hmacSHA256_fmt_plug.c +++ b/src/hmacSHA256_fmt_plug.c @@ -41,7 +41,7 @@ static union xx { unsigned char c[BINARY_SIZE+1]; ARCH_WORD a[BINARY_SIZE/sizeof(ARCH_WORD)+1]; } u; -static char *crypt_key = u.c; // Requires alignment on generic sha2.c +static char *crypt_key = (char *)u.c; // Requires alignment on generic sha2.c static unsigned char opad[PAD_SIZE]; static unsigned char ipad[PAD_SIZE]; static unsigned char cursalt[SALT_SIZE]; diff --git a/src/hmacSHA384_fmt_plug.c b/src/hmacSHA384_fmt_plug.c index 561408a..ccd6e7e 100644 --- a/src/hmacSHA384_fmt_plug.c +++ b/src/hmacSHA384_fmt_plug.c @@ -44,7 +44,7 @@ static union xx { unsigned char c[BINARY_SIZE+1]; ARCH_WORD a[BINARY_SIZE/sizeof(ARCH_WORD)+1]; } u; -static char *crypt_key = u.c; // Requires alignment on generic sha2.c +static char *crypt_key = (char *)u.c; // Requires alignment on generic sha2.c static unsigned char opad[PAD_SIZE]; static unsigned char ipad[PAD_SIZE]; static unsigned char cursalt[SALT_SIZE]; diff --git a/src/hmacSHA512_fmt_plug.c b/src/hmacSHA512_fmt_plug.c index 19072a2..e72bf30 100644 --- a/src/hmacSHA512_fmt_plug.c +++ b/src/hmacSHA512_fmt_plug.c @@ -45,7 +45,7 @@ static union xx { unsigned char c[BINARY_SIZE+1]; ARCH_WORD a[BINARY_SIZE/sizeof(ARCH_WORD)+1]; } u; -static char *crypt_key = u.c; // Requires alignment on generic sha2.c +static char *crypt_key = (char *)u.c; // Requires alignment on generic sha2.c static unsigned char opad[PAD_SIZE]; static unsigned char ipad[PAD_SIZE]; static unsigned char cursalt[SALT_SIZE]; -- 1.7.7.6