]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
fixes for undeclared function.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 10 Apr 2015 12:19:30 +0000 (12:19 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 10 Apr 2015 12:19:30 +0000 (12:19 +0000)
git-svn-id: file:///svn/unbound/trunk@3394 be551aaa-1e26-0410-a405-d3ace91eadb9

services/cache/infra.c
services/cache/infra.h

index b543381971381f055bec185e61137f53b3efd2fd..c0049d8b6a8b56798ea9a8bde7dd1db653bb07b6 100644 (file)
@@ -703,7 +703,6 @@ infra_get_lame_rtt(struct infra_cache* infra,
        return 1;
 }
 
-/** find the ratelimit in qps for a domain */
 int infra_find_ratelimit(struct infra_cache* infra, uint8_t* name,
        size_t namelen)
 {
@@ -788,7 +787,6 @@ static int* infra_rate_find_second(void* data, time_t t)
        return &(d->qps[oldest]);
 }
 
-/** find the maximum rate stored, not too old. 0 if no information. */
 int infra_rate_max(void* data, time_t now)
 {
        struct rate_data* d = (struct rate_data*)data;
index 5ebbbd9f7b5f48a9a1e5bbb62a66afd9a948df37..fc7abb7c4dd164c6ed9e9a55479ef7da5f3a4ba9 100644 (file)
@@ -374,6 +374,13 @@ void infra_ratelimit_dec(struct infra_cache* infra, uint8_t* name,
 int infra_ratelimit_exceeded(struct infra_cache* infra, uint8_t* name,
        size_t namelen, time_t timenow);
 
+/** find the maximum rate stored, not too old. 0 if no information. */
+int infra_rate_max(void* data, time_t now);
+
+/** find the ratelimit in qps for a domain */
+int infra_find_ratelimit(struct infra_cache* infra, uint8_t* name,
+       size_t namelen);
+
 /**
  * Get memory used by the infra cache.
  * @param infra: infrastructure cache.