]> git.ozlabs.org Git - ppp.git/commitdiff
pppd/crypto: Fix #ifdefs that should be #ifs
authorPaul Mackerras <paulus@ozlabs.org>
Tue, 10 Sep 2024 11:02:26 +0000 (21:02 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 10 Sep 2024 11:02:26 +0000 (21:02 +1000)
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 <paulus@ozlabs.org>
pppd/crypto.c

index 05cdb788fcc9257ff70b2744e3a5625dea22c3c6..054ee1364e74e84b0637d26a2607e24569bbb509 100644 (file)
@@ -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;