summaryrefslogtreecommitdiff
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
parentb76951ba8f6456bdaa5ddd90faede60e2833c4df (diff)
downloadsamba-f7cd20d43cab0b21a93e9f4a86eb0e114e667b4b.tar.gz
samba-f7cd20d43cab0b21a93e9f4a86eb0e114e667b4b.tar.bz2
samba-f7cd20d43cab0b21a93e9f4a86eb0e114e667b4b.zip
s3:net_util: add some const to sockaddr_storage
metze
-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;