summaryrefslogtreecommitdiffstats
path: root/test/bio_comp_test.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2022-10-24 09:18:34 +0100
committerMatt Caswell <matt@openssl.org>2022-10-24 14:15:15 +0100
commitbb2bbd53d49c510c2ae705d86e8fd2ed829cbd92 (patch)
tree35d1fe48b3c1dca6543cf757e0ab89e423c9fc2b /test/bio_comp_test.c
parent2eb75291c1357cdaf852e0da613edc14f3d5ae4f (diff)
Fix a compilation failure in bio_comp_test.c
Compiling with clang, --strict-warnings and enable-zlib-dynamic resulted in a compilation failure. This fixes it. Reviewed-by: Tomas Mraz <tomas@openssl.org> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/19480)
Diffstat (limited to 'test/bio_comp_test.c')
-rw-r--r--test/bio_comp_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/bio_comp_test.c b/test/bio_comp_test.c
index 5dd13abd36..75ae46adb6 100644
--- a/test/bio_comp_test.c
+++ b/test/bio_comp_test.c
@@ -25,8 +25,8 @@
static int sizes[NUM_SIZES] = { 64, 512, 2048, 16 * 1024 };
/* using global buffers */
-unsigned char *original = NULL;
-unsigned char *result = NULL;
+static unsigned char *original = NULL;
+static unsigned char *result = NULL;
/*
* For compression: