};
uint8_t nul = 0;
struct iovec iov[3];
- int ret;
+ NTSTATUS status;
/*
* Send a rec_change to ourselves to delete a dead entry
iov[1] = (struct iovec) { .iov_base = key.dptr, .iov_len = key.dsize };
iov[2] = (struct iovec) { .iov_base = &nul, .iov_len = sizeof(nul) };
- 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);
+ status = messaging_send_iov(msg_ctx,
+ instance->client,
+ MSG_SMB_NOTIFY_REC_CHANGE,
+ iov,
+ ARRAY_SIZE(iov),
+ NULL,
+ 0);
- if (ret != 0) {
- DBG_WARNING("messaging_send_iov_from returned %s\n",
- strerror(ret));
+ if (!NT_STATUS_IS_OK(status)) {
+ DBG_WARNING("messaging_send_iov failed: %s\n",
+ nt_errstr(status));
}
}