mirror of
https://github.com/curl/curl.git
synced 2026-08-25 19:33:32 +03:00
version: turn version number functions into returning void
... as we never use the return codes from them. Reviewed-by: Daniel Gustafsson Closes #7319
This commit is contained in:
parent
5372ee37d3
commit
63c7668182
13 changed files with 31 additions and 37 deletions
|
|
@ -2940,9 +2940,9 @@ void Curl_ssh_cleanup(void)
|
|||
(void)ssh_finalize();
|
||||
}
|
||||
|
||||
size_t Curl_ssh_version(char *buffer, size_t buflen)
|
||||
void Curl_ssh_version(char *buffer, size_t buflen)
|
||||
{
|
||||
return msnprintf(buffer, buflen, "libssh/%s", CURL_LIBSSH_VERSION);
|
||||
(void)msnprintf(buffer, buflen, "libssh/%s", CURL_LIBSSH_VERSION);
|
||||
}
|
||||
|
||||
#endif /* USE_LIBSSH */
|
||||
|
|
|
|||
|
|
@ -3609,9 +3609,9 @@ void Curl_ssh_cleanup(void)
|
|||
#endif
|
||||
}
|
||||
|
||||
size_t Curl_ssh_version(char *buffer, size_t buflen)
|
||||
void Curl_ssh_version(char *buffer, size_t buflen)
|
||||
{
|
||||
return msnprintf(buffer, buflen, "libssh2/%s", LIBSSH2_VERSION);
|
||||
(void)msnprintf(buffer, buflen, "libssh2/%s", LIBSSH2_VERSION);
|
||||
}
|
||||
|
||||
/* The SSH session is associated with the *CONNECTION* but the callback user
|
||||
|
|
|
|||
|
|
@ -262,7 +262,7 @@ extern const struct Curl_handler Curl_handler_sftp;
|
|||
/* generic SSH backend functions */
|
||||
CURLcode Curl_ssh_init(void);
|
||||
void Curl_ssh_cleanup(void);
|
||||
size_t Curl_ssh_version(char *buffer, size_t buflen);
|
||||
void Curl_ssh_version(char *buffer, size_t buflen);
|
||||
void Curl_ssh_attach(struct Curl_easy *data,
|
||||
struct connectdata *conn);
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -1148,9 +1148,9 @@ static int wssh_getsock(struct Curl_easy *data,
|
|||
return bitmap;
|
||||
}
|
||||
|
||||
size_t Curl_ssh_version(char *buffer, size_t buflen)
|
||||
void Curl_ssh_version(char *buffer, size_t buflen)
|
||||
{
|
||||
return msnprintf(buffer, buflen, "wolfssh/%s", LIBWOLFSSH_VERSION_STRING);
|
||||
(void)msnprintf(buffer, buflen, "wolfssh/%s", LIBWOLFSSH_VERSION_STRING);
|
||||
}
|
||||
|
||||
CURLcode Curl_ssh_init(void)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue