]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
vssh: remove the #ifdef for Curl_ssh_init, use empty macro
authorDaniel Stenberg <daniel@haxx.se>
Fri, 20 Oct 2023 16:19:55 +0000 (18:19 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Oct 2023 20:56:01 +0000 (22:56 +0200)
In the same style as other init calls

lib/easy.c
lib/vssh/ssh.h

index db4f834fb93aa72a051894e4467549786ea06e57..a8d9b590d7a2ea8a72001a03ca36ddefa6b1d363 100644 (file)
@@ -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;
 
index 1e1b1379c276599570829ed9fbb02ac443569cf5..ca0533aa546aad5c8efec4bc02ba8bf546f0ea01 100644 (file)
@@ -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 */