From b4610cdb3b1d8e20bafd6d2d563360a59ef33ba3 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 30 Aug 2010 13:42:20 +0200 Subject: s4:lib/messaging: add some const to messaging_send() metze --- source4/lib/messaging/irpc.h | 2 +- source4/lib/messaging/messaging.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/lib/messaging/irpc.h b/source4/lib/messaging/irpc.h index e7c0b874c1..6607eb42e2 100644 --- a/source4/lib/messaging/irpc.h +++ b/source4/lib/messaging/irpc.h @@ -88,7 +88,7 @@ typedef void (*msg_callback_t)(struct messaging_context *msg, void *private_data struct server_id server_id, DATA_BLOB *data); NTSTATUS messaging_send(struct messaging_context *msg, struct server_id server, - uint32_t msg_type, DATA_BLOB *data); + uint32_t msg_type, const DATA_BLOB *data); NTSTATUS messaging_register(struct messaging_context *msg, void *private_data, uint32_t msg_type, msg_callback_t fn); diff --git a/source4/lib/messaging/messaging.c b/source4/lib/messaging/messaging.c index 19d6971088..290210efaa 100644 --- a/source4/lib/messaging/messaging.c +++ b/source4/lib/messaging/messaging.c @@ -448,7 +448,7 @@ void messaging_deregister(struct messaging_context *msg, uint32_t msg_type, void Send a message to a particular server */ NTSTATUS messaging_send(struct messaging_context *msg, struct server_id server, - uint32_t msg_type, DATA_BLOB *data) + uint32_t msg_type, const DATA_BLOB *data) { struct messaging_rec *rec; NTSTATUS status; -- cgit