summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2013-06-11 19:37:47 +0200
committerJeremy Allison <jra@samba.org>2013-08-12 14:00:10 -0700
commitc909c0131a6b4290d53c538c17cc3ae15591512b (patch)
treed306e4ecdff0bc6fe475bfe8df40f992f7ca1a0d /source3/rpc_server
parent7701053806e3cc98f8d7d4d9bd1d7b63c0b504e8 (diff)
downloadsamba-c909c0131a6b4290d53c538c17cc3ae15591512b.tar.gz
samba-c909c0131a6b4290d53c538c17cc3ae15591512b.tar.bz2
samba-c909c0131a6b4290d53c538c17cc3ae15591512b.zip
rpc_server3: Fix two const warnings
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/rpc_sock_helper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/rpc_sock_helper.c b/source3/rpc_server/rpc_sock_helper.c
index dc88f25a90..650dd9d23c 100644
--- a/source3/rpc_server/rpc_sock_helper.c
+++ b/source3/rpc_server/rpc_sock_helper.c
@@ -73,7 +73,7 @@ NTSTATUS rpc_create_tcpip_sockets(const struct ndr_interface_table *iface,
if (bvec != NULL) {
rc = tsocket_address_bsd_from_sockaddr(tmp_ctx,
- (struct sockaddr *)ifss,
+ (const struct sockaddr *)ifss,
sizeof(struct sockaddr_storage),
&bind_addr);
if (rc < 0) {
@@ -197,7 +197,7 @@ NTSTATUS rpc_setup_tcpip_sockets(struct tevent_context *ev_ctx,
if (bvec != NULL) {
rc = tsocket_address_bsd_from_sockaddr(tmp_ctx,
- (struct sockaddr*)ifss,
+ (const struct sockaddr*)ifss,
sizeof(struct sockaddr_storage),
&bind_addr);
if (rc < 0) {