summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHugo Landau <hlandau@openssl.org>2023-05-22 13:37:17 +0100
committerHugo Landau <hlandau@openssl.org>2023-05-24 10:34:55 +0100
commit6dea91f56dcbcb0979dd36790664808ad960faf9 (patch)
tree6e07b27a49fc0565d723c96ce9121ce6f5e8a2ab /test
parenta2c61e414332fa7162bb0f9ab991983e0d8cb438 (diff)
Resolve a djgpp function name conflict
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20856)
Diffstat (limited to 'test')
-rw-r--r--test/testutil/basic_output.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/test/testutil/basic_output.c b/test/testutil/basic_output.c
index 2266b6fda0..ebd646ce14 100644
--- a/test/testutil/basic_output.c
+++ b/test/testutil/basic_output.c
@@ -76,14 +76,14 @@ void test_close_streams(void)
#endif
}
-static ossl_inline void lock(void)
+static ossl_inline void test_io_lock(void)
{
#if defined(OPENSSL_THREADS)
OPENSSL_assert(CRYPTO_THREAD_write_lock(io_lock) > 0);
#endif
}
-static ossl_inline void unlock(void)
+static ossl_inline void test_io_unlock(void)
{
#if defined(OPENSSL_THREADS)
CRYPTO_THREAD_unlock(io_lock);
@@ -94,9 +94,9 @@ int test_vprintf_stdout(const char *fmt, va_list ap)
{
int r;
- lock();
+ test_io_lock();
r = BIO_vprintf(bio_out, fmt, ap);
- unlock();
+ test_io_unlock();
return r;
}
@@ -105,9 +105,9 @@ int test_vprintf_stderr(const char *fmt, va_list ap)
{
int r;
- lock();
+ test_io_lock();
r = BIO_vprintf(bio_err, fmt, ap);
- unlock();
+ test_io_unlock();
return r;
}
@@ -116,9 +116,9 @@ int test_flush_stdout(void)
{
int r;
- lock();
+ test_io_lock();
r = BIO_flush(bio_out);
- unlock();
+ test_io_unlock();
return r;
}
@@ -127,9 +127,9 @@ int test_flush_stderr(void)
{
int r;
- lock();
+ test_io_lock();
r = BIO_flush(bio_err);
- unlock();
+ test_io_unlock();
return r;
}
@@ -138,9 +138,9 @@ int test_vprintf_tapout(const char *fmt, va_list ap)
{
int r;
- lock();
+ test_io_lock();
r = BIO_vprintf(tap_out, fmt, ap);
- unlock();
+ test_io_unlock();
return r;
}
@@ -149,9 +149,9 @@ int test_vprintf_taperr(const char *fmt, va_list ap)
{
int r;
- lock();
+ test_io_lock();
r = BIO_vprintf(tap_err, fmt, ap);
- unlock();
+ test_io_unlock();
return r;
}
@@ -160,9 +160,9 @@ int test_flush_tapout(void)
{
int r;
- lock();
+ test_io_lock();
r = BIO_flush(tap_out);
- unlock();
+ test_io_unlock();
return r;
}
@@ -171,9 +171,9 @@ int test_flush_taperr(void)
{
int r;
- lock();
+ test_io_lock();
r = BIO_flush(tap_err);
- unlock();
+ test_io_unlock();
return r;
}