diff options
author | Amitay Isaacs <amitay@gmail.com> | 2018-07-03 14:08:22 +1000 |
---|---|---|
committer | Martin Schwenke <martins@samba.org> | 2018-07-04 23:56:42 +0200 |
commit | b977ded38a79e1eadd6965e8b7fd49f86322b4d6 (patch) | |
tree | be0696e49c475bcd3680cc1ffc5dc0d65642cdcf /ctdb/common | |
parent | 9f28d30633af721efec02d8816a9fa48f795a01c (diff) | |
download | samba-b977ded38a79e1eadd6965e8b7fd49f86322b4d6.tar.gz |
ctdb-common: Use correct return type for tevent_queue_add_entry
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13493
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'ctdb/common')
-rw-r--r-- | ctdb/common/sock_io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ctdb/common/sock_io.c b/ctdb/common/sock_io.c index 51341ce023e..b5c9332526b 100644 --- a/ctdb/common/sock_io.c +++ b/ctdb/common/sock_io.c @@ -278,7 +278,7 @@ int sock_queue_write(struct sock_queue *queue, uint8_t *buf, size_t buflen) { struct tevent_req *req; struct sock_queue_write_state *state; - bool status; + struct tevent_queue_entry *qentry; if (buflen >= INT32_MAX) { return -1; @@ -292,9 +292,9 @@ int sock_queue_write(struct sock_queue *queue, uint8_t *buf, size_t buflen) state->pkt = buf; state->pkt_size = (uint32_t)buflen; - status = tevent_queue_add_entry(queue->queue, queue->ev, req, + qentry = tevent_queue_add_entry(queue->queue, queue->ev, req, sock_queue_trigger, queue); - if (! status) { + if (qentry == NULL) { talloc_free(req); return -1; } |