~ubuntu-branches/debian/sid/httrack/sid

« back to all changes in this revision

Viewing changes to src/proxy/store.c

  • Committer: Package Import Robot
  • Author(s): Xavier Roche
  • Date: 2014-04-09 21:02:08 UTC
  • mfrom: (1.4.46)
  • Revision ID: package-import@ubuntu.com-20140409210208-n2o92f7nj5g82p7k
Tags: 3.48.1-1
Updated to 3.48.1 (3.48-1)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include <stdlib.h>
31
31
#include <string.h>
32
32
#include <time.h>
 
33
#ifdef __ANDROID__
 
34
static long int  timezone = 0;
 
35
#endif
33
36
 
34
37
/* Locking */
35
38
#ifdef _WIN32
233
236
PT_Indexes PT_New(void) {
234
237
  PT_Indexes index = (PT_Indexes) calloc(sizeof(_PT_Indexes), 1);
235
238
 
236
 
  index->cil = inthash_new(127);
 
239
  index->cil = inthash_new(0);
237
240
  index->index_size = 0;
238
241
  index->index = NULL;
239
242
  return index;
431
434
    inthash hdupes = NULL;
432
435
 
433
436
    if (!subtree)
434
 
      hdupes = inthash_new(127);
 
437
      hdupes = inthash_new(0);
435
438
    StringClear(list);
436
439
    StringClear(listindexes);
437
440
    StringClear(subitem);
548
551
      index->type = type;
549
552
      index->slots.common.timestamp = (time_t) time(NULL);
550
553
      index->slots.common.startUrl[0] = '\0';
551
 
      index->slots.common.hash = inthash_new(8191);
 
554
      index->slots.common.hash = inthash_new(0);
552
555
      if (!_IndexFuncts[type].PT_LoadCache(index, filename)) {
553
556
        proxytrack_print_log(DEBUG,
554
557
                             "reading httrack cache (format #%d) %s : error",