diff options
-rw-r--r-- | libsoup/soup-address.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsoup/soup-address.c b/libsoup/soup-address.c index aca6849d..6a3d804b 100644 --- a/libsoup/soup-address.c +++ b/libsoup/soup-address.c @@ -666,7 +666,7 @@ dns_cache_item_insert(SoupAddress *addr, GList *addrs) } static gboolean -dns_cache_remove_oldest_item() +dns_cache_remove_oldest_item(void) { GList *temp_list = NULL; DnsCacheItem *del_old_item = NULL; @@ -723,7 +723,7 @@ get_dns_from_cache (SoupAddress *addr) len = g_list_length (item->ip); d_value = timep - item->time; // The expiration time for multi ip is 30s; the expiration time for single ip is 60s - if (d_value <= MULTI_IP_MAX_TIME_SECOND || len == 1 && d_value <= DNS_CACHE_MAX_TIME_SECOND) + if (d_value <= MULTI_IP_MAX_TIME_SECOND || (len == 1 && d_value <= DNS_CACHE_MAX_TIME_SECOND)) return item->ip; } return NULL; |