summaryrefslogtreecommitdiff
path: root/src/htsback.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-08-12 13:42:55 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-08-12 13:42:55 +0000
commit4e903579b22f3698934294370f076119576041ab (patch)
treeb2007c09c0994a8a3c2d1aba4c8c04ae540daf9a /src/htsback.c
parente77141ceaefb55f427edcfb777f5f1a96b885583 (diff)
Big cleanup in core heap hashtable code, rewritten using new fancy hashtables.
Diffstat (limited to 'src/htsback.c')
-rw-r--r--src/htsback.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htsback.c b/src/htsback.c
index 4de49dc..18ea8ac 100644
--- a/src/htsback.c
+++ b/src/htsback.c
@@ -2308,7 +2308,7 @@ static int slot_can_be_finalized(httrackp * opt, const lien_back * back) {
&& !may_be_hypertext_mime(opt, back->r.contenttype, back->url_fil) // may NOT be parseable mime type
/* Has not been added before the heap saw the link, or now exists on heap */
&& (!back->early_add
- || hash_read(opt->hash, back->url_sav, "", 0, opt->urlhack) >= 0);
+ || hash_read(opt->hash, back->url_sav, NULL, HASH_STRUCT_FILENAME) >= 0);
}
void back_clean(httrackp * opt, cache_back * cache, struct_back * sback) {
@@ -2330,7 +2330,7 @@ void back_clean(httrackp * opt, cache_back * cache, struct_back * sback) {
//}
/* MANDATORY if we don't want back_fill() to endlessly put the same file on download! */
{
- int index = hash_read(opt->hash, back[i].url_sav, "", 0, opt->urlhack); // lecture type 0 (sav)
+ int index = hash_read(opt->hash, back[i].url_sav, NULL, HASH_STRUCT_FILENAME ); // lecture type 0 (sav)
if (index >= 0) {
opt->liens[index]->pass2 = -1; /* DONE! */