diff options
author | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-09-07 04:21:07 +0000 |
---|---|---|
committer | Robert James Kaes <rjkaes@users.sourceforge.net> | 2001-09-07 04:21:07 +0000 |
commit | 1a9dc4e7e8951fd74a41959a1b6946a2563472cf (patch) | |
tree | ccf6960470b4e43a3877826457b6801cb17a9ce4 /src/dnscache.c | |
parent | f5b9bdb93d076d6fff8e8cb99cc668e107e9c364 (diff) | |
download | tinyproxy-1a9dc4e7e8951fd74a41959a1b6946a2563472cf.tar.gz tinyproxy-1a9dc4e7e8951fd74a41959a1b6946a2563472cf.zip |
Error message cleanup.
Diffstat (limited to 'src/dnscache.c')
-rw-r--r-- | src/dnscache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dnscache.c b/src/dnscache.c index 27f5136..30457a9 100644 --- a/src/dnscache.c +++ b/src/dnscache.c @@ -1,4 +1,4 @@ -/* $Id: dnscache.c,v 1.13 2001-09-07 00:40:34 rjkaes Exp $ +/* $Id: dnscache.c,v 1.14 2001-09-07 04:17:26 rjkaes Exp $ * * This is a caching DNS system. When a host name is needed we look it up here * and see if there is already an answer for it. The domains are placed in a @@ -131,13 +131,13 @@ int dnscache(struct in_addr *addr, char *domain) return -1; } - memcpy(addr, resolv->h_addr_list[0], (size_t)resolv->h_length); + memcpy(addr, resolv->h_addr_list[0], resolv->h_length); dns_insert(addr, domain); dns_insertions++; if (dns_insertions > DNS_INSERT_LIMIT) { - log_message(LOG_NOTICE, "DNS Insertion limit, rebuilding cache."); + log_message(LOG_INFO, "DNS Insertion limit reached (%u). Rebuilding cache.", dns_insertions); ternary_destroy(dns_tree, free); dns_tree = ternary_new(); dns_insertions = 0; |