From: Viktor Szakats Date: Sun, 5 Apr 2026 09:32:48 +0000 (+0200) Subject: libssh: fix `-Wsign-compare` in 32-bit builds by dropping a redundant check X-Git-Tag: curl-8_20_0~204 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8968a68ebae70f5b61bb87194fd0975d3d0371f4;p=thirdparty%2Fcurl.git libssh: fix `-Wsign-compare` in 32-bit builds by dropping a redundant check Follow-up to 8c8eeba5225599a1f5750ece1d15751a8bfce0bb #21214 (wrong silencing) Follow-up to c049c37acd074a61bbd07eebe25fdf32af575a2a #18989 (add redundant check) Follow-up to c988ec9f41060144e175b519f9017c569ac8d3db #9328 (make check fail) Follow-up to 44a02d2532c4e6dabb8f2a074d52d5e99ff533be #9324 (add original check) Closes #21225 --- diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c index f5ad541cd1..0faf830768 100644 --- a/lib/vssh/libssh.c +++ b/lib/vssh/libssh.c @@ -1661,9 +1661,6 @@ static int myssh_in_SFTP_QUOTE_STAT(struct Curl_easy *data, myssh_quote_error(data, sshc, NULL); return SSH_NO_ERROR; } - if(date > (time_t)UINT_MAX) - /* because the liubssh API cannot deal with a larger value */ - date = UINT_MAX; if(!strncmp(cmd, "atime", 5)) sshc->quote_attrs->atime = (uint32_t)date; else /* mtime */