]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Resolve a djgpp function name conflict
authorHugo Landau <hlandau@openssl.org>
Mon, 22 May 2023 12:37:17 +0000 (13:37 +0100)
committerHugo Landau <hlandau@openssl.org>
Wed, 24 May 2023 09:34:55 +0000 (10:34 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20856)

test/testutil/basic_output.c

index 2266b6fda0250329df0ddf666bdb3df49cd580ee..ebd646ce144579b6a4586cbef1016bd6eac33ab3 100644 (file)
@@ -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;
 }