ctdb-daemon: Make type of list_of_nodes() consistent with callers
authorMartin Schwenke <martin@meltin.net>
Fri, 7 Jun 2019 20:22:49 +0000 (06:22 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 5 Jul 2019 05:03:22 +0000 (05:03 +0000)
commit3ccce53e3e6ebb5f7f628bd1b18b7152f548dd27
tree3f5bf04439fef175a2c791ce5a27f1342cb62eb9
parent655634790139b08a5093dc3851dee208d13f7294
ctdb-daemon: Make type of list_of_nodes() consistent with callers

Instead of taking exclude_pnn as a parameter, calculate it from an
include_self_parameter, which is passed through from the 2 calling
functions.

While doing this, fix a signed/unsigned comparison issue by declaring
the new exclude_pnn local variable as an unsigned type.

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