>From 3533f78757b08714eafe116dfb77f9aad0cd9941 Mon Sep 17 00:00:00 2001 From: Frank Dittrich Date: Thu, 5 Jul 2012 20:21:48 +0200 Subject: [PATCH] Silence -Wpointer-sign warnings in hmacSHA*_fmt_plug.c, take 2 This time removing the "unsigned" from the union member. --- 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..8f490e4 100644 --- a/src/hmacSHA224_fmt_plug.c +++ b/src/hmacSHA224_fmt_plug.c @@ -37,7 +37,7 @@ static struct fmt_tests tests[] = { }; static union xx { - unsigned char c[BINARY_SIZE+1]; + 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 diff --git a/src/hmacSHA256_fmt_plug.c b/src/hmacSHA256_fmt_plug.c index 919455e..bf23869 100644 --- a/src/hmacSHA256_fmt_plug.c +++ b/src/hmacSHA256_fmt_plug.c @@ -38,7 +38,7 @@ static struct fmt_tests tests[] = { }; static union xx { - unsigned char c[BINARY_SIZE+1]; + 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 diff --git a/src/hmacSHA384_fmt_plug.c b/src/hmacSHA384_fmt_plug.c index 561408a..0f4ab87 100644 --- a/src/hmacSHA384_fmt_plug.c +++ b/src/hmacSHA384_fmt_plug.c @@ -41,7 +41,7 @@ static struct fmt_tests tests[] = { }; static union xx { - unsigned char c[BINARY_SIZE+1]; + 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 diff --git a/src/hmacSHA512_fmt_plug.c b/src/hmacSHA512_fmt_plug.c index 19072a2..02426a8 100644 --- a/src/hmacSHA512_fmt_plug.c +++ b/src/hmacSHA512_fmt_plug.c @@ -42,7 +42,7 @@ static struct fmt_tests tests[] = { }; static union xx { - unsigned char c[BINARY_SIZE+1]; + 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 -- 1.7.7.6