ctdb-daemon: Fix signed/unsigned comparisons by casting
[samba.git] / ctdb / server / ctdb_client.c
index 419333025cbed1c4f43347ab04a1005cc058bb54..dc7836abb2e7225e2c36828bd52b4f1ed1816365 100644 (file)
@@ -97,7 +97,9 @@ int ctdb_call_local(struct ctdb_db_context *ctdb_db, struct ctdb_call *call,
        c->header = header;
 
        for (fn=ctdb_db->calls;fn;fn=fn->next) {
        c->header = header;
 
        for (fn=ctdb_db->calls;fn;fn=fn->next) {
-               if (fn->id == call->call_id) break;
+               if (fn->id == (uint32_t)call->call_id) {
+                       break;
+               }
        }
        if (fn == NULL) {
                ctdb_set_error(ctdb, "Unknown call id %u\n", call->call_id);
        }
        if (fn == NULL) {
                ctdb_set_error(ctdb, "Unknown call id %u\n", call->call_id);