ustream-mbedtls: fix comparison of integers of different signs
authorPetr Štetiar <ynezz@true.cz>
Thu, 10 Dec 2020 11:09:48 +0000 (12:09 +0100)
committerPetr Štetiar <ynezz@true.cz>
Thu, 10 Dec 2020 11:24:34 +0000 (12:24 +0100)
commitcd2c3d12db432dd8a484e34818d1a30f84ad9fae
tree00196d4c46044d402a1526a2f89741d74ede5819
parent5896991e46a39040000841dfbb6e401473853c80
ustream-mbedtls: fix comparison of integers of different signs

Fixes following compiler extra warning:

 ustream-mbedtls.c:40:11: error: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Werror,-Wsign-compare]
        if (slen > len)
            ~~~~ ^ ~~~

Signed-off-by: Petr Štetiar <ynezz@true.cz>
ustream-mbedtls.c