From: Douglas Bagnall Date: Sat, 27 Mar 2021 22:20:25 +0000 (+1300) Subject: dsdb/dns scavange: make a helper function static X-Git-Tag: tevent-0.11.0~1358 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59f45fa7f650aab15045f6c38d5ae26217be64cc;p=thirdparty%2Fsamba.git dsdb/dns scavange: make a helper function static Signed-off-by: Douglas Bagnall Reviewed-by: Jeremy Allison --- diff --git a/source4/dsdb/kcc/scavenge_dns_records.c b/source4/dsdb/kcc/scavenge_dns_records.c index 1a79795db37..8bcb35f079a 100644 --- a/source4/dsdb/kcc/scavenge_dns_records.c +++ b/source4/dsdb/kcc/scavenge_dns_records.c @@ -43,10 +43,10 @@ /* * Copy only non-expired dns records from one message element to another. */ -NTSTATUS copy_current_records(TALLOC_CTX *mem_ctx, - struct ldb_message_element *old_el, - struct ldb_message_element *el, - uint32_t dns_timestamp) +static NTSTATUS copy_current_records(TALLOC_CTX *mem_ctx, + struct ldb_message_element *old_el, + struct ldb_message_element *el, + uint32_t dns_timestamp) { unsigned int i, num_kept = 0; struct dnsp_DnssrvRpcRecord *recs = NULL; diff --git a/source4/dsdb/kcc/scavenge_dns_records.h b/source4/dsdb/kcc/scavenge_dns_records.h index d97586c97bb..3643d40c2bb 100644 --- a/source4/dsdb/kcc/scavenge_dns_records.h +++ b/source4/dsdb/kcc/scavenge_dns_records.h @@ -41,8 +41,3 @@ NTSTATUS dns_tombstone_records_zone(TALLOC_CTX *mem_ctx, struct ldb_val *tombstone_blob, uint32_t dns_timestamp, char **error_string); - -NTSTATUS copy_current_records(TALLOC_CTX *mem_ctx, - struct ldb_message_element *old_el, - struct ldb_message_element *el, - uint32_t dns_timestamp);