fixes for undeclared function.

git-svn-id: file:///svn/unbound/trunk@3394 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2015-04-10 12:19:30 +00:00
parent 85192d4569
commit c03ff186ec
2 changed files with 7 additions and 2 deletions

View 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;

View 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.