From 8d3ce930f8c364d70db53e0633b056913a3e4197 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 20 Oct 2023 18:19:55 +0200 Subject: [PATCH] vssh: remove the #ifdef for Curl_ssh_init, use empty macro In the same style as other init calls --- lib/easy.c | 3 +-- lib/vssh/ssh.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/easy.c b/lib/easy.c index db4f834fb9..a8d9b590d7 100644 --- a/lib/easy.c +++ b/lib/easy.c @@ -188,11 +188,10 @@ static CURLcode global_init(long flags, bool memoryfuncs) goto fail; } -#if defined(USE_SSH) if(Curl_ssh_init()) { + DEBUGF(fprintf(stderr, "Error: Curl_ssh_init failed\n")); goto fail; } -#endif easy_init_flags = flags; diff --git a/lib/vssh/ssh.h b/lib/vssh/ssh.h index 1e1b1379c2..ca0533aa54 100644 --- a/lib/vssh/ssh.h +++ b/lib/vssh/ssh.h @@ -267,6 +267,7 @@ void Curl_ssh_attach(struct Curl_easy *data, /* for non-SSH builds */ #define Curl_ssh_cleanup() #define Curl_ssh_attach(x,y) +#define Curl_ssh_init() 0 #endif #endif /* HEADER_CURL_SSH_H */ -- 2.47.3