ctdb: Fix some -Werror=strict-overflow issues
authorMartin Schwenke <martin@meltin.net>
Mon, 16 Apr 2018 08:32:07 +0000 (18:32 +1000)
committerAmitay Isaacs <amitay@samba.org>
Fri, 27 Apr 2018 04:53:16 +0000 (06:53 +0200)
commit7dbf83369705bf2fe7c4d6b79ddf794ea8adb5db
tree427712f8e463639203ca3c562acd17b104c5ec0a
parent5757d259321f20fab349fd1a0d447473ba2c8fc6
ctdb: Fix some -Werror=strict-overflow issues

All quite obvious.  For the LCP2 one, we're not actually counting so
use a bool instead of an int.

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