summaryrefslogtreecommitdiff
path: root/source3/smbd/notifyd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-10-02 20:42:05 -0700
committerJeremy Allison <jra@samba.org>2015-10-07 23:54:05 +0200
commitfdfc7299a67b5c7d0eac2d084a6e9ac490f083f5 (patch)
tree10ffe9515b983efabc22cbbf51a0e890d33ef491 /source3/smbd/notifyd
parent546d8b4129cb782c38337ed37a80420c3e846306 (diff)
downloadsamba-fdfc7299a67b5c7d0eac2d084a6e9ac490f083f5.tar.gz
lib: Make ctdbd_messaging_send_iov return 0/errno
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/notifyd')
-rw-r--r--source3/smbd/notifyd/notifyd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/notifyd/notifyd.c b/source3/smbd/notifyd/notifyd.c
index 5554273320f..06f48cf2b59 100644
--- a/source3/smbd/notifyd/notifyd.c
+++ b/source3/smbd/notifyd/notifyd.c
@@ -942,11 +942,11 @@ static void notifyd_broadcast_reclog(struct ctdbd_connection *ctdbd_conn,
struct server_id src,
struct messaging_reclog *log)
{
- NTSTATUS status;
enum ndr_err_code ndr_err;
uint8_t msghdr[MESSAGE_HDR_LENGTH];
DATA_BLOB blob;
struct iovec iov[2];
+ int ret;
if (log == NULL) {
return;
@@ -971,13 +971,13 @@ static void notifyd_broadcast_reclog(struct ctdbd_connection *ctdbd_conn,
iov[1] = (struct iovec) { .iov_base = blob.data,
.iov_len = blob.length };
- status = ctdbd_messaging_send_iov(
+ ret = ctdbd_messaging_send_iov(
ctdbd_conn, CTDB_BROADCAST_VNNMAP,
CTDB_SRVID_SAMBA_NOTIFY_PROXY, iov, ARRAY_SIZE(iov));
TALLOC_FREE(blob.data);
- if (!NT_STATUS_IS_OK(status)) {
+ if (ret != 0) {
DEBUG(1, ("%s: ctdbd_messaging_send failed: %s\n",
- __func__, nt_errstr(status)));
+ __func__, strerror(ret)));
goto done;
}