summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-06 21:54:51 +0100
committerVolker Lendecke <vl@samba.org>2009-01-06 21:57:01 +0100
commit1d427dcee069165462f9c8b75790e00b2d977ddf (patch)
treebc2636e36812d1682731eee6f350d738cd4ade52
parent958186df2a79c42ddb101059d5f1871327ad4088 (diff)
downloadsamba-1d427dcee069165462f9c8b75790e00b2d977ddf.tar.gz
samba-1d427dcee069165462f9c8b75790e00b2d977ddf.tar.bz2
samba-1d427dcee069165462f9c8b75790e00b2d977ddf.zip
Add some const to dcerpc_binding_build_tower()
-rw-r--r--librpc/rpc/binding.c4
-rw-r--r--source3/include/proto.h4
-rw-r--r--source4/librpc/rpc/dcerpc.h4
3 files changed, 9 insertions, 3 deletions
diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c
index 4f36faca79..16abcfe444 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 c9185154f8..ec8f413d2f 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 d809491ecc..248b4f91be 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);