dsgetdcname: Add some const
authorVolker Lendecke <vl@samba.org>
Fri, 12 Jan 2018 21:16:39 +0000 (22:16 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 13 Feb 2018 15:42:22 +0000 (16:42 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/libsmb/dsgetdcname.c

index f15456a8f4a934b7d3b66f051cdc279dcd6575a0..2fb9842a893d8a37689d492c2b760c9ffd7691af 100644 (file)
@@ -35,11 +35,12 @@ struct ip_service_name {
        const char *hostname;
 };
 
-static NTSTATUS make_dc_info_from_cldap_reply(TALLOC_CTX *mem_ctx,
-                                             uint32_t flags,
-                                             struct sockaddr_storage *ss,
-                                             struct NETLOGON_SAM_LOGON_RESPONSE_EX *r,
-                                             struct netr_DsRGetDCNameInfo **info);
+static NTSTATUS make_dc_info_from_cldap_reply(
+       TALLOC_CTX *mem_ctx,
+       uint32_t flags,
+       const struct sockaddr_storage *ss,
+       struct NETLOGON_SAM_LOGON_RESPONSE_EX *r,
+       struct netr_DsRGetDCNameInfo **info);
 
 /****************************************************************
 ****************************************************************/
@@ -735,11 +736,12 @@ static void map_dc_and_domain_names(uint32_t flags,
 /****************************************************************
 ****************************************************************/
 
-static NTSTATUS make_dc_info_from_cldap_reply(TALLOC_CTX *mem_ctx,
-                                             uint32_t flags,
-                                             struct sockaddr_storage *ss,
-                                             struct NETLOGON_SAM_LOGON_RESPONSE_EX *r,
-                                             struct netr_DsRGetDCNameInfo **info)
+static NTSTATUS make_dc_info_from_cldap_reply(
+       TALLOC_CTX *mem_ctx,
+       uint32_t flags,
+       const struct sockaddr_storage *ss,
+       struct NETLOGON_SAM_LOGON_RESPONSE_EX *r,
+       struct netr_DsRGetDCNameInfo **info)
 {
        const char *dc_hostname = NULL;
        const char *dc_domain_name = NULL;