From 609044aea2ffa2520b14b810e46e2a256c8db56c Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Sun, 29 Oct 2006 21:19:23 +0000 Subject: Compiler warning fix --- tests/libtest/lib509.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'tests/libtest/lib509.c') diff --git a/tests/libtest/lib509.c b/tests/libtest/lib509.c index a21fae4a4..a911e3654 100644 --- a/tests/libtest/lib509.c +++ b/tests/libtest/lib509.c @@ -33,6 +33,13 @@ #define MAIN_LOOP_HANG_TIMEOUT 30 * 1000 #define MULTI_PERFORM_HANG_TIMEOUT 20 * 1000 +/* + * We use this ZERO_NULL to avoid picky compiler warnings, + * when assigning a NULL pointer to a function pointer var. + */ + +#define ZERO_NULL 0 + int portnum; /* the HTTPS port number we use */ typedef struct sslctxparm_st { @@ -165,7 +172,7 @@ static CURLcode sslctxfun(CURL * curl, void * sslctx, void * parm) but it still does, see the error handling in the call back */ SSL_CTX_set_verify_depth(ctx,0); - SSL_CTX_set_verify(ctx,SSL_VERIFY_NONE,NULL); + SSL_CTX_set_verify(ctx,SSL_VERIFY_NONE,ZERO_NULL); #if OPENSSL_VERSION_NUMBER<0x00907000L /* in newer openssl versions we can set a parameter for the call back. */ -- cgit v1.2.3