From 3ab9caae3379fcc37df716ef83be593bee0e8a43 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 12 Mar 2020 13:34:43 +0100 Subject: [PATCH] lib: Fix a signed/unsigned warning The types are deliberately distinct, but nwritten is >0 or ==-1, so this should be okay. Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- source3/lib/ctdbd_conn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index e968ec5e491..37d54402af4 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -1380,7 +1380,7 @@ static struct tevent_req *ctdb_pkt_send_send(TALLOC_CTX *mem_ctx, */ nwritten = writev(conn->fd, state->iov, state->iovcnt); - if (nwritten == state->packet_len) { + if ((size_t)nwritten == state->packet_len) { DBG_DEBUG("Finished sending reqid [%" PRIu32 "]\n", reqid); *req_state = DBWRAP_REQ_DISPATCHED; -- 2.47.3