s3-rpc_client: Make data pointer const in trans_send().
authorAndreas Schneider <asn@samba.org>
Thu, 24 Oct 2013 09:49:53 +0000 (11:49 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 30 Oct 2013 00:32:08 +0000 (01:32 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Wed Oct 30 01:32:08 CET 2013 on sn-devel-104

source3/rpc_client/rpc_transport.h
source3/rpc_client/rpc_transport_tstream.c

index ad22106..1c77458 100644 (file)
@@ -64,7 +64,7 @@ struct rpc_cli_transport {
         */
        struct tevent_req *(*trans_send)(TALLOC_CTX *mem_ctx,
                                         struct tevent_context *ev,
-                                        uint8_t *data, size_t data_len,
+                                        const uint8_t *data, size_t data_len,
                                         uint32_t max_rdata_len,
                                         void *priv);
        /**
index dd0de08..3d47d60 100644 (file)
@@ -356,7 +356,7 @@ static int rpc_tstream_trans_next_vector(struct tstream_context *stream,
 
 static struct tevent_req *rpc_tstream_trans_send(TALLOC_CTX *mem_ctx,
                                                 struct tevent_context *ev,
-                                                uint8_t *data, size_t data_len,
+                                                const uint8_t *data, size_t data_len,
                                                 uint32_t max_rdata_len,
                                                 void *priv)
 {