mirror of https://github.com/getdnsapi/getdns.git
Make upstream_reset static (and not shared between .c files)
This commit is contained in:
parent
5ce764ab70
commit
f8e1ed78b8
|
@ -733,7 +733,7 @@ void _getdns_upstream_log(getdns_upstream *upstream, uint64_t system,
|
||||||
va_end(args);
|
va_end(args);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
upstream_backoff(getdns_upstream *upstream) {
|
upstream_backoff(getdns_upstream *upstream) {
|
||||||
upstream->conn_state = GETDNS_CONN_BACKOFF;
|
upstream->conn_state = GETDNS_CONN_BACKOFF;
|
||||||
/* Increase the backoff interval incrementally up to the tls_backoff_time*/
|
/* Increase the backoff interval incrementally up to the tls_backoff_time*/
|
||||||
|
@ -760,7 +760,7 @@ upstream_backoff(getdns_upstream *upstream) {
|
||||||
asctime(gmtime(&upstream->conn_retry_time)));
|
asctime(gmtime(&upstream->conn_retry_time)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
_getdns_upstream_reset(getdns_upstream *upstream)
|
_getdns_upstream_reset(getdns_upstream *upstream)
|
||||||
{
|
{
|
||||||
/* Back off connections that never got up service at all (probably no
|
/* Back off connections that never got up service at all (probably no
|
||||||
|
|
|
@ -557,6 +557,4 @@ int _getdns_context_write_priv_file(getdns_context *context,
|
||||||
|
|
||||||
int _getdns_context_can_write_appdata(getdns_context *context);
|
int _getdns_context_can_write_appdata(getdns_context *context);
|
||||||
|
|
||||||
void _getdns_upstream_reset(getdns_upstream *upstream);
|
|
||||||
|
|
||||||
#endif /* _GETDNS_CONTEXT_H_ */
|
#endif /* _GETDNS_CONTEXT_H_ */
|
||||||
|
|
Loading…
Reference in New Issue