winbindd: remove const from set_routing_domain()
authorStefan Metzmacher <metze@samba.org>
Mon, 15 Jan 2018 11:03:11 +0000 (12:03 +0100)
committerStefan Metzmacher <metze@samba.org>
Sun, 11 Feb 2018 10:12:08 +0000 (11:12 +0100)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13235

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit c5bd18c0021b428c669dbbc35f65a3d436b4add5)

source3/winbindd/winbindd.h
source3/winbindd/winbindd_proto.h
source3/winbindd/winbindd_util.c

index 43c90445e87887ed86d0314511e66a05e8c5a910..3e4b256ef32ed344b93cad388c305fe217e21d75 100644 (file)
@@ -142,7 +142,7 @@ struct winbindd_domain {
        uint32_t domain_flags;                   /* Domain flags from netlogon.h */
        uint32_t domain_type;                    /* Domain type from netlogon.h */
        uint32_t domain_trust_attribs;           /* Trust attribs from netlogon.h */
-       const struct winbindd_domain *routing_domain;
+       struct winbindd_domain *routing_domain;
        bool initialized;                      /* Did we already ask for the domain mode? */
        bool native_mode;                      /* is this a win2k domain in native mode ? */
        bool active_directory;                 /* is this a win2k active directory ? */
index 9a52f6a4edb1a15fed938a9c45cce90166f2e9bf..49d44af97ff0da9e15c125373f90f78b8a0bb471 100644 (file)
@@ -439,7 +439,7 @@ NTSTATUS winbind_dual_SamLogon(struct winbindd_domain *domain,
 struct winbindd_domain *domain_list(void);
 struct winbindd_domain *wb_next_domain(struct winbindd_domain *domain);
 bool set_routing_domain(struct winbindd_domain *domain,
-                       const struct winbindd_domain *routing_domain);
+                       struct winbindd_domain *routing_domain);
 bool add_trusted_domain_from_auth(uint16_t validation_level,
                                  struct info3_text *info3,
                                  struct info6_text *info6);
index b20976c8048f7fbd20e2a307171081e6df94055b..876ee69a4b6eb43e2ccd420ca1e32881ee1ad71c 100644 (file)
@@ -295,7 +295,7 @@ static NTSTATUS add_trusted_domain(const char *domain_name,
 }
 
 bool set_routing_domain(struct winbindd_domain *domain,
-                       const struct winbindd_domain *routing_domain)
+                       struct winbindd_domain *routing_domain)
 {
        if (domain->routing_domain == NULL) {
                domain->routing_domain = routing_domain;