From 746d14aa78a9eb49d6e296bb68b8c615639978d8 Mon Sep 17 00:00:00 2001 From: miod <> Date: Sun, 15 Feb 2015 09:23:23 +0000 Subject: Remove ancient gcc workaround on mips. --- src/regress/lib/libcrypto/bf/bftest.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/regress/lib/libcrypto/bf/bftest.c b/src/regress/lib/libcrypto/bf/bftest.c index c3f04d801e..f4d8aa0ed3 100644 --- a/src/regress/lib/libcrypto/bf/bftest.c +++ b/src/regress/lib/libcrypto/bf/bftest.c @@ -351,7 +351,7 @@ static int test(void) data[0]=bf_plain[n][0]; data[1]=bf_plain[n][1]; BF_encrypt(data,&key); - if (memcmp(&(bf_cipher[n][0]),&(data[0]),8) != 0) + if (memcmp(&(bf_cipher[n][0]),&(data[0]), sizeof data) != 0) { printf("BF_encrypt error encrypting\n"); printf("got :"); @@ -423,8 +423,7 @@ static int test(void) { BF_set_key(&key,n,key_test); BF_ecb_encrypt(key_data,out,&key,BF_ENCRYPT); - /* mips-sgi-irix6.5-gcc vv -mabi=64 bug workaround */ - if (memcmp(out,&(key_out[i=n-1][0]),8) != 0) + if (memcmp(out,&(key_out[n-1][0]),8) != 0) { printf("blowfish setkey error\n"); err=1; -- cgit v1.2.3-55-g6feb