ubusd: fix comparison of integers of different signs
authorPetr Štetiar <ynezz@true.cz>
Wed, 11 Dec 2019 09:04:36 +0000 (10:04 +0100)
committerPetr Štetiar <ynezz@true.cz>
Mon, 16 Dec 2019 22:39:16 +0000 (23:39 +0100)
commitd61282db56404bae71515d207b878a445854624a
tree53fa0df798058996ef66cc5968f28e73c94c5529
parent90fb16234c2258e31bc5a0e67a8cff3f30395951
ubusd: fix comparison of integers of different signs

Fixes following clang-9 compiler warning:

 ubusd.c:36:19: error: comparison of integers of different signs: 'uint32_t' (aka 'unsigned int') and 'int' [-Werror,-Wsign-compare]
         if (ub->refcount == ~0) {
             ~~~~~~~~~~~~ ^  ~~

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