From 2f86e32a993727f61d61f9a254dafff9efdb769f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 14 Jul 2015 11:40:31 +0200 Subject: [PATCH] CID 1311767: Cast enum type to avoid compiler warnings Signed-off-by: Andreas Schneider Reviewed-by: Jeremy Allison --- source4/dsdb/common/util_trusts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source4/dsdb/common/util_trusts.c b/source4/dsdb/common/util_trusts.c index 943d4379bc9..50cb197b03e 100644 --- a/source4/dsdb/common/util_trusts.c +++ b/source4/dsdb/common/util_trusts.c @@ -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: -- 2.11.4.GIT