]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
dsdb/dns scavange: make a helper function static
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Sat, 27 Mar 2021 22:20:25 +0000 (11:20 +1300)
committerJeremy Allison <jra@samba.org>
Mon, 29 Mar 2021 23:20:37 +0000 (23:20 +0000)
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dsdb/kcc/scavenge_dns_records.c
source4/dsdb/kcc/scavenge_dns_records.h

index 1a79795db37b33b7e14f323dc4cda0c1adee2cf4..8bcb35f079ac6988f23a9ef87d8e0b9e66ce1be5 100644 (file)
 /*
  * 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;
index d97586c97bbb4b80f92acc23c114d44d37f7bafc..3643d40c2bb8b57db1d5ff1decb3b6619b34e456 100644 (file)
@@ -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);