HomePhabricator

kex: Avoid always-false comparisons as reported by csbuild

Authored by Jakuje on Dec 11 2019, 11:28 AM.

Description

kex: Avoid always-false comparisons as reported by csbuild

/builds/jjelen/libssh-mirror/src/kex.c:360:17: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] <--[cc]

360 |         if (len < 0) {
    |                 ^

/builds/jjelen/libssh-mirror/src/kex.c:372:17: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] <--[cc]

372 |         if (len < 0) {
    |                 ^

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit e2841908fbe5a236ab075ac0a13c26af96f5fe64)

Details

Committed
asnThu, Jan 23, 9:48 AM
Parents
rLIBSSH93bf0ab6a358: tests: fix typos
Branches
Unknown
Tags
Unknown