s3:rpc_client: add some const to rpc_api_pipe_req_send()
authorStefan Metzmacher <metze@samba.org>
Sun, 5 Jan 2014 06:56:20 +0000 (07:56 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 6 Jan 2014 23:27:11 +0000 (00:27 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/rpc_client/cli_pipe.c

index 11e3eb3f29ebd5d7c1e912cbc25444be55bedcb8..94bf3d1601fa613310f3ce89092fd9ec794828a6 100644 (file)
@@ -1139,7 +1139,7 @@ struct rpc_api_pipe_req_state {
        struct rpc_pipe_client *cli;
        uint8_t op_num;
        uint32_t call_id;
-       DATA_BLOB *req_data;
+       const DATA_BLOB *req_data;
        uint32_t req_data_sent;
        DATA_BLOB rpc_out;
        DATA_BLOB reply_pdu;
@@ -1154,7 +1154,7 @@ static struct tevent_req *rpc_api_pipe_req_send(TALLOC_CTX *mem_ctx,
                                         struct tevent_context *ev,
                                         struct rpc_pipe_client *cli,
                                         uint8_t op_num,
-                                        DATA_BLOB *req_data)
+                                        const DATA_BLOB *req_data)
 {
        struct tevent_req *req, *subreq;
        struct rpc_api_pipe_req_state *state;