summaryrefslogtreecommitdiffstats
path: root/source3/utils
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-07-22 13:05:43 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-22 17:06:08 +0200
commitf7cd20d43cab0b21a93e9f4a86eb0e114e667b4b (patch)
tree07508e4c45330344408716f8c9535f6924712735 /source3/utils
parentb76951ba8f6456bdaa5ddd90faede60e2833c4df (diff)
downloadsamba-f7cd20d43cab0b21a93e9f4a86eb0e114e667b4b.tar.gz
samba-f7cd20d43cab0b21a93e9f4a86eb0e114e667b4b.tar.xz
samba-f7cd20d43cab0b21a93e9f4a86eb0e114e667b4b.zip
s3:net_util: add some const to sockaddr_storage
metze
Diffstat (limited to 'source3/utils')
-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 ad20f6e0743..bb711437e18 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 0b8bd839d1b..573842a2a20 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;