From: Daniel Stenberg Date: Fri, 20 Oct 2023 16:19:55 +0000 (+0200) Subject: vssh: remove the #ifdef for Curl_ssh_init, use empty macro X-Git-Tag: curl-8_5_0~223 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d3ce930f8c364d70db53e0633b056913a3e4197;p=thirdparty%2Fcurl.git vssh: remove the #ifdef for Curl_ssh_init, use empty macro In the same style as other init calls --- 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 */