summaryrefslogtreecommitdiff
path: root/lib/vssh/libssh2.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vssh/libssh2.c')
-rw-r--r--lib/vssh/libssh2.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/vssh/libssh2.c b/lib/vssh/libssh2.c
index ea7648239..5dfc377ec 100644
--- a/lib/vssh/libssh2.c
+++ b/lib/vssh/libssh2.c
@@ -276,19 +276,19 @@ static CURLcode libssh2_session_error_to_CURLE(int err)
static LIBSSH2_ALLOC_FUNC(my_libssh2_malloc)
{
- (void)abstract; /* arg not used */
+ (void)abstract;
return Curl_cmalloc(count);
}
static LIBSSH2_REALLOC_FUNC(my_libssh2_realloc)
{
- (void)abstract; /* arg not used */
+ (void)abstract;
return Curl_crealloc(ptr, count);
}
static LIBSSH2_FREE_FUNC(my_libssh2_free)
{
- (void)abstract; /* arg not used */
+ (void)abstract;
if(ptr) /* ssh2 agent sometimes call free with null ptr */
Curl_cfree(ptr);
}
@@ -1390,16 +1390,16 @@ sftp_quote_stat(struct Curl_easy *data,
}
else if(!strncmp(cmd, "atime", 5) ||
!strncmp(cmd, "mtime", 5)) {
- time_t date = Curl_getdate_capped(sshc->quote_path1);
+ time_t date;
bool fail = FALSE;
- if(date == -1) {
+ if(Curl_getdate_capped(sshc->quote_path1, &date)) {
failf(data, "incorrect date format for %.*s", 5, cmd);
fail = TRUE;
}
#if SIZEOF_TIME_T > SIZEOF_LONG
if(date > 0xffffffff) {
- /* if 'long' cannot old >32-bit, this date cannot be sent */
+ /* if 'long' cannot hold >32-bit, this date cannot be sent */
failf(data, "date overflow");
fail = TRUE;
}
@@ -3732,7 +3732,7 @@ static CURLcode scp_done(struct Curl_easy *data, CURLcode status,
bool premature)
{
struct ssh_conn *sshc = Curl_conn_meta_get(data->conn, CURL_META_SSH_CONN);
- (void)premature; /* not used */
+ (void)premature;
if(sshc && !status)
myssh_state(data, sshc, SSH_SCP_DONE);