aboutsummaryrefslogtreecommitdiff
path: root/modules/benchmark/blowfish2.c
diff options
context:
space:
mode:
authorhwspeedy <ns@bigbear.dk>2024-05-24 10:20:25 +0200
committerhwspeedy <ns@bigbear.dk>2024-05-24 10:20:25 +0200
commita8ccc2aa89c78108566c67b9e853797ea451f9c8 (patch)
tree9499a58b04a6baf1ab4a0741f7a31d3ddbc0fbc8 /modules/benchmark/blowfish2.c
parent25c366a8074af72c0811a960b947302bed036669 (diff)
FIX GCC Warnings, added more checking to gcc flags
Diffstat (limited to 'modules/benchmark/blowfish2.c')
-rw-r--r--modules/benchmark/blowfish2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/benchmark/blowfish2.c b/modules/benchmark/blowfish2.c
index 7426bef9..b60dd52c 100644
--- a/modules/benchmark/blowfish2.c
+++ b/modules/benchmark/blowfish2.c
@@ -30,7 +30,7 @@
static gpointer bfish_exec(const void *in_data, gint thread_number)
{
- unsigned char key[] = BLOW_KEY;
+ char key[] = BLOW_KEY;
unsigned char *data = NULL;
unsigned long data_len = BENCH_DATA_SIZE, i = 0;
BLOWFISH_CTX ctx;
@@ -38,7 +38,7 @@ static gpointer bfish_exec(const void *in_data, gint thread_number)
data = malloc(BENCH_DATA_SIZE);
memcpy(data, in_data, BENCH_DATA_SIZE);
- Blowfish_Init(&ctx, key, strlen(key));
+ Blowfish_Init(&ctx, (guchar *)key, strlen(key));
for(i = 0; i < data_len; i += 8) {
Blowfish_Encrypt(&ctx, (unsigned long*)&data[i], (unsigned long*)&data[i+4]);
}