From 188948525819b047bab8084cf1b4a1fb5052d0bf Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Tue, 10 Sep 2024 21:02:26 +1000 Subject: [PATCH] pppd/crypto: Fix #ifdefs that should be #ifs Since they are testing a condition, they should be #if not #ifdef. Fixes: 077141058aab ("pppd: Add additional functions to handle debugging of crypto calls (#509)", 2024-09-02) Signed-off-by: Paul Mackerras --- pppd/crypto.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pppd/crypto.c b/pppd/crypto.c index 05cdb78..054ee13 100644 --- a/pppd/crypto.c +++ b/pppd/crypto.c @@ -185,7 +185,7 @@ PPP_crypto_error(char *fmt, ...) return; } -#ifdef OPENSSL_VERSION_NUMBER < 0x10100000L +#if OPENSSL_VERSION_NUMBER < 0x10100000L ERR_load_crypto_strings(); #endif error("%s, %s\n", buf, ERR_reason_error_string(err)); @@ -236,7 +236,7 @@ int PPP_crypto_deinit() } #endif -#ifdef OPENSSL_VERSION_NUMBER < 0x10100000L +#if OPENSSL_VERSION_NUMBER < 0x10100000L ERR_free_strings(); #endif return 1; -- 2.39.5