summaryrefslogtreecommitdiff
path: root/source3/lib/ctdbd_conn.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2020-03-12 13:34:43 +0100
committerRalph Boehme <slow@samba.org>2020-04-08 14:46:39 +0000
commit3ab9caae3379fcc37df716ef83be593bee0e8a43 (patch)
tree495f05c731d7110ab592e712ed8faa5038a8403f /source3/lib/ctdbd_conn.c
parent9918abd73245241b9ff486090b22194119858f50 (diff)
downloadsamba-3ab9caae3379fcc37df716ef83be593bee0e8a43.tar.gz
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 <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/lib/ctdbd_conn.c')
-rw-r--r--source3/lib/ctdbd_conn.c2
1 files changed, 1 insertions, 1 deletions
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;