summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net_proto.h16
-rw-r--r--source3/utils/net_util.c16
2 files changed, 16 insertions, 16 deletions
diff --git a/source3/utils/net_proto.h b/source3/utils/net_proto.h
index ad20f6e074..bb711437e1 100644
--- a/source3/utils/net_proto.h
+++ b/source3/utils/net_proto.h
@@ -400,22 +400,22 @@ NTSTATUS net_rpc_lookup_name(struct net_context *c,
const char **ret_name, struct dom_sid *ret_sid,
enum lsa_SidType *ret_type);
NTSTATUS connect_to_service(struct net_context *c,
- struct cli_state **cli_ctx,
- struct sockaddr_storage *server_ss,
- const char *server_name,
- const char *service_name,
- const char *service_type);
+ struct cli_state **cli_ctx,
+ const struct sockaddr_storage *server_ss,
+ const char *server_name,
+ const char *service_name,
+ const char *service_type);
NTSTATUS connect_to_ipc(struct net_context *c,
struct cli_state **cli_ctx,
- struct sockaddr_storage *server_ss,
+ const struct sockaddr_storage *server_ss,
const char *server_name);
NTSTATUS connect_to_ipc_anonymous(struct net_context *c,
struct cli_state **cli_ctx,
- struct sockaddr_storage *server_ss,
+ const struct sockaddr_storage *server_ss,
const char *server_name);
NTSTATUS connect_to_ipc_krb5(struct net_context *c,
struct cli_state **cli_ctx,
- struct sockaddr_storage *server_ss,
+ const struct sockaddr_storage *server_ss,
const char *server_name);
NTSTATUS connect_dst_pipe(struct net_context *c, struct cli_state **cli_dst,
struct rpc_pipe_client **pp_pipe_hnd,
diff --git a/source3/utils/net_util.c b/source3/utils/net_util.c
index 0b8bd839d1..573842a2a2 100644
--- a/source3/utils/net_util.c
+++ b/source3/utils/net_util.c
@@ -98,11 +98,11 @@ NTSTATUS net_rpc_lookup_name(struct net_context *c,
****************************************************************************/
NTSTATUS connect_to_service(struct net_context *c,
- struct cli_state **cli_ctx,
- struct sockaddr_storage *server_ss,
- const char *server_name,
- const char *service_name,
- const char *service_type)
+ struct cli_state **cli_ctx,
+ const struct sockaddr_storage *server_ss,
+ const char *server_name,
+ const char *service_name,
+ const char *service_type)
{
NTSTATUS nt_status;
int flags = 0;
@@ -187,7 +187,7 @@ NTSTATUS connect_to_service(struct net_context *c,
NTSTATUS connect_to_ipc(struct net_context *c,
struct cli_state **cli_ctx,
- struct sockaddr_storage *server_ss,
+ const struct sockaddr_storage *server_ss,
const char *server_name)
{
return connect_to_service(c, cli_ctx, server_ss, server_name, "IPC$",
@@ -200,7 +200,7 @@ NTSTATUS connect_to_ipc(struct net_context *c,
NTSTATUS connect_to_ipc_anonymous(struct net_context *c,
struct cli_state **cli_ctx,
- struct sockaddr_storage *server_ss,
+ const struct sockaddr_storage *server_ss,
const char *server_name)
{
NTSTATUS nt_status;
@@ -246,7 +246,7 @@ static char *get_user_and_realm(const char *username)
NTSTATUS connect_to_ipc_krb5(struct net_context *c,
struct cli_state **cli_ctx,
- struct sockaddr_storage *server_ss,
+ const struct sockaddr_storage *server_ss,
const char *server_name)
{
NTSTATUS nt_status;