CID 1311767: Cast enum type to avoid compiler warnings
authorAndreas Schneider <asn@samba.org>
Tue, 14 Jul 2015 09:40:31 +0000 (11:40 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 14 Jul 2015 23:47:21 +0000 (01:47 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/common/util_trusts.c

index 943d4379bc9bd82b0e3c38d2e50201c3c5b6dfc3..50cb197b03e9175400ec8a5d19b93326ec299325 100644 (file)
@@ -73,7 +73,7 @@ NTSTATUS dsdb_trust_forest_info_from_lsa(TALLOC_CTX *mem_ctx,
 
                ftr->flags = lftr->flags;
                ftr->timestamp = lftr->time;
-               ftr->type = lftr->type;
+               ftr->type = (enum ForestTrustInfoRecordType)lftr->type;
 
                switch (lftr->type) {
                case LSA_FOREST_TRUST_TOP_LEVEL_NAME: