From: Volker Lendecke Date: Thu, 12 Mar 2020 12:34:43 +0000 (+0100) Subject: lib: Fix a signed/unsigned warning X-Git-Tag: ldb-2.2.0~959 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ab9caae3379fcc37df716ef83be593bee0e8a43;p=thirdparty%2Fsamba.git 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 --- 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;