rec->flags = lrec->flags;
rec->timestamp = lrec->time;
- rec->type = lrec->type;
+ rec->type = (enum ForestTrustInfoRecordType)lrec->type;
switch (lrec->type) {
case LSA_FOREST_TRUST_TOP_LEVEL_NAME:
rec->flags = 0;
rec->timestamp = 0;
- rec->type = LSA_FOREST_TRUST_TOP_LEVEL_NAME;
+ rec->type = FOREST_TRUST_TOP_LEVEL_NAME;
rec->data.name.string = talloc_strdup(fti, dom_info->dns_forest);
if (!rec->data.name.string) {
rec->flags = 0;
rec->timestamp = 0;
- rec->type = LSA_FOREST_TRUST_DOMAIN_INFO;
+ rec->type = FOREST_TRUST_DOMAIN_INFO;
info = &rec->data.info;