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>

Details

Committed
asnDec 23 2019, 2:31 PM
Parents
rLIBSSH2892b49a37e7: tests: Use the path to SSH executable consistently
Branches
Unknown
Tags
Unknown