From: Volker Lendecke Date: Tue, 6 Jan 2009 20:54:51 +0000 (+0100) Subject: Add some const to dcerpc_binding_build_tower() X-Git-Tag: samba-4.0.0alpha6~242 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d427dcee069165462f9c8b75790e00b2d977ddf;p=thirdparty%2Fsamba.git Add some const to dcerpc_binding_build_tower() --- diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index 4f36faca796..16abcfe4442 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -654,7 +654,9 @@ _PUBLIC_ NTSTATUS dcerpc_binding_from_tower(TALLOC_CTX *mem_ctx, return NT_STATUS_OK; } -_PUBLIC_ NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx, struct dcerpc_binding *binding, struct epm_tower *tower) +_PUBLIC_ NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx, + const struct dcerpc_binding *binding, + struct epm_tower *tower) { const enum epm_protocol *protseq = NULL; int num_protocols = -1, i; diff --git a/source3/include/proto.h b/source3/include/proto.h index c9185154f8d..ec8f413d2f3 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -2296,7 +2296,9 @@ _PUBLIC_ enum dcerpc_transport_t dcerpc_transport_by_tower(struct epm_tower *tow _PUBLIC_ NTSTATUS dcerpc_binding_from_tower(TALLOC_CTX *mem_ctx, struct epm_tower *tower, struct dcerpc_binding **b_out); -_PUBLIC_ NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx, struct dcerpc_binding *binding, struct epm_tower *tower); +_PUBLIC_ NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx, + const struct dcerpc_binding *binding, + struct epm_tower *tower); /* The following definitions come from librpc/rpc/dcerpc.c */ diff --git a/source4/librpc/rpc/dcerpc.h b/source4/librpc/rpc/dcerpc.h index d809491ecc9..248b4f91be8 100644 --- a/source4/librpc/rpc/dcerpc.h +++ b/source4/librpc/rpc/dcerpc.h @@ -353,7 +353,9 @@ void dcerpc_log_packet(const char *lockdir, const struct ndr_interface_table *ndr, uint32_t opnum, uint32_t flags, DATA_BLOB *pkt); -NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx, struct dcerpc_binding *binding, struct epm_tower *tower); +NTSTATUS dcerpc_binding_build_tower(TALLOC_CTX *mem_ctx, + const struct dcerpc_binding *binding, + struct epm_tower *tower); NTSTATUS dcerpc_floor_get_lhs_data(const struct epm_floor *epm_floor, struct ndr_syntax_id *syntax);