summaryrefslogtreecommitdiff
path: root/src/htsback.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-06-23 19:40:47 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-06-23 19:40:47 +0000
commit0817df2fb67e3a2be95b311c4c2d42d2a1e1bc41 (patch)
tree25123b396b822a7c2219eb3456eef3dfd9a6462a /src/htsback.c
parentf42a5fa5dd4b5b8b91b66e7b47602be12aa298b2 (diff)
Trashed historical link heap hashtable, and replaced it by cleaner code using new cuckoo hashtables
I can not believe I kept such a terible and frightening code for such a long time, geez.
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 0644de1..e270d81 100644
--- a/src/htsback.c
+++ b/src/htsback.c
@@ -408,7 +408,7 @@ int back_done_incache(struct_back * sback) {
// stored (ready) slots
if (sback->ready != NULL) {
#ifndef HTS_NO_BACK_ON_DISK
- n += inthash_nitems(sback->ready);
+ n += (int) inthash_nitems(sback->ready);
#else
struct_inthash_enum e = inthash_enum_new(sback->ready);
inthash_chain *item;
@@ -2308,7 +2308,7 @@ void back_clean(httrackp * opt, cache_back * cache, struct_back * sback) {
int index = hash_read(opt->hash, back[i].url_sav, "", 0, opt->urlhack); // lecture type 0 (sav)
if (index >= 0) {
- opt->hash->liens[index]->pass2 = -1; /* DONE! */
+ opt->liens[index]->pass2 = -1; /* DONE! */
} else {
hts_log_print(opt, LOG_INFO,
"engine: warning: entry cleaned up, but no trace on heap: %s%s (%s)",