From: Martin Schwenke Date: Thu, 23 May 2019 07:47:24 +0000 (+1000) Subject: ctdb-recovery: Fix signed/unsigned comparison by casting X-Git-Tag: ldb-2.0.5~474 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=978c7dbd55916460b993b26bc0d3457bf063a72f;p=thirdparty%2Fsamba.git ctdb-recovery: Fix signed/unsigned comparison by casting Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/server/ctdb_recoverd.c b/ctdb/server/ctdb_recoverd.c index 617d8fa28b5..3e0d84f3935 100644 --- a/ctdb/server/ctdb_recoverd.c +++ b/ctdb/server/ctdb_recoverd.c @@ -2256,7 +2256,7 @@ static void verify_recmaster_callback(struct ctdb_client_control_state *state) /* if we got a response, then the recmaster will be stored in the status field */ - if (state->status != rmdata->pnn) { + if ((uint32_t)state->status != rmdata->pnn) { DEBUG(DEBUG_ERR,("Node %d thinks node %d is recmaster. Need a new recmaster election\n", state->c->hdr.destnode, state->status)); ctdb_set_culprit(rmdata->rec, state->c->hdr.destnode); rmdata->status = MONITOR_ELECTION_NEEDED;