diff options
author | Volker Lendecke <vl@samba.org> | 2015-10-02 20:42:05 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-10-07 23:54:06 +0200 |
commit | 2bc55c5321a44e439a2e00309e979c0188c3fc75 (patch) | |
tree | 4b960f74849b3663b945739a294df72ca8ff2e50 /source3/smbd/notifyd | |
parent | 678ad954e8734fce52d283e95c0b7c5c9d0d1318 (diff) | |
download | samba-2bc55c5321a44e439a2e00309e979c0188c3fc75.tar.gz |
lib: Make messaging_send_iov_from 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.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/notifyd/notifyd.c b/source3/smbd/notifyd/notifyd.c index 06f48cf2b59..141556da94a 100644 --- a/source3/smbd/notifyd/notifyd.c +++ b/source3/smbd/notifyd/notifyd.c @@ -791,7 +791,7 @@ static void notifyd_send_delete(struct messaging_context *msg_ctx, }; uint8_t nul = 0; struct iovec iov[3]; - NTSTATUS status; + int ret; /* * Send a rec_change to ourselves to delete a dead entry @@ -803,13 +803,13 @@ static void notifyd_send_delete(struct messaging_context *msg_ctx, iov[1] = (struct iovec) { .iov_base = key.dptr, .iov_len = key.dsize }; iov[2] = (struct iovec) { .iov_base = &nul, .iov_len = sizeof(nul) }; - status = messaging_send_iov_from( + ret = messaging_send_iov_from( msg_ctx, instance->client, messaging_server_id(msg_ctx), MSG_SMB_NOTIFY_REC_CHANGE, iov, ARRAY_SIZE(iov), NULL, 0); - if (!NT_STATUS_IS_OK(status)) { + if (ret != 0) { DEBUG(10, ("%s: messaging_send_iov_from returned %s\n", - __func__, nt_errstr(status))); + __func__, strerror(ret))); } } |