minor optimize

This commit is contained in:
Nick Peng
2019-08-16 20:13:09 +08:00
parent 6291c17d6a
commit 87f04571b1
14 changed files with 127 additions and 80 deletions

View File

@@ -9,6 +9,10 @@
#include <stdlib.h>
#include <time.h>
#ifdef __cpluscplus
extern "C" {
#endif
#define DNS_CACHE_TTL_MIN 30
struct dns_cache {
@@ -59,4 +63,7 @@ int dns_cache_get_ttl(struct dns_cache *dns_cache);
void dns_cache_destroy(void);
#ifdef __cpluscplus
}
#endif
#endif // !_SMARTDNS_CACHE_H