mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Use hash_table_get instead of hash_table_get_pair.
This commit is contained in:
parent
4759cf099f
commit
85b98d0834
@ -1,3 +1,8 @@
|
|||||||
|
2012-08-25 Hrvoje Niksic <hniksic@gmail.com>
|
||||||
|
|
||||||
|
* warc.c (warc_find_duplicate_cdx_record): Use hash_table_get
|
||||||
|
instead of hash_table_get_pair.
|
||||||
|
|
||||||
2012-08-21 <y-iida@secom.co.jp> (tiny change)
|
2012-08-21 <y-iida@secom.co.jp> (tiny change)
|
||||||
|
|
||||||
* connect.c (connect_to_ip) [ENABLE_IPV6]: Attempt to use IPv6.
|
* connect.c (connect_to_ip) [ENABLE_IPV6]: Attempt to use IPv6.
|
||||||
|
@ -1005,12 +1005,10 @@ warc_find_duplicate_cdx_record (char *url, char *sha1_digest_payload)
|
|||||||
if (warc_cdx_dedup_table == NULL)
|
if (warc_cdx_dedup_table == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
char *key;
|
struct warc_cdx_record *rec_existing
|
||||||
struct warc_cdx_record *rec_existing;
|
= hash_table_get (warc_cdx_dedup_table, sha1_digest_payload);
|
||||||
int found = hash_table_get_pair (warc_cdx_dedup_table, sha1_digest_payload,
|
|
||||||
&key, &rec_existing);
|
|
||||||
|
|
||||||
if (found && strcmp (rec_existing->url, url) == 0)
|
if (rec_existing && strcmp (rec_existing->url, url) == 0)
|
||||||
return rec_existing;
|
return rec_existing;
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user