ctdb-common: Return value of ctdb_queue_length() should be unsigned
authorMartin Schwenke <martin@meltin.net>
Thu, 1 Aug 2019 00:46:36 +0000 (10:46 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 14 Aug 2019 09:11:36 +0000 (09:11 +0000)
commit5a3d99dc7ad49717252d8c9625e0f8d064cffcd8
tree7ba3b2e25622ddee76f3a5498bcc928a224105ee
parentf7f9f57d2e13e7ced1f2237273965af8dfc29335
ctdb-common: Return value of ctdb_queue_length() should be unsigned

Compiling with -Wsign-compare complains:

ctdb/server/ctdb_daemon.c: scope_hint: In function ‘daemon_queue_send’
ctdb/server/ctdb_daemon.c:259:40: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare]
...

The struct ctdb_queue member out_queue_length is actually uint32_t, so
just return that type.

Found by csbuild.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/common.h
ctdb/common/ctdb_io.c