diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2013-04-21 18:46:35 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2013-04-21 18:46:35 +0000 |
commit | 78173ef8190a1d5f9bab28053b0c274329533e59 (patch) | |
tree | bcb808532b5217262ccd1cfc08a33c4af30be108 /src/htsback.c | |
parent | aad018682d4298a476e2bca6eb8756de41fa8ca0 (diff) |
Build warning cleanup.
* introduced SOClen type (aka. socklen_t)
Diffstat (limited to 'src/htsback.c')
-rw-r--r-- | src/htsback.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/htsback.c b/src/htsback.c index a19d543..f1bf273 100644 --- a/src/htsback.c +++ b/src/htsback.c @@ -464,13 +464,13 @@ int back_finalize(httrackp* opt,cache_back* cache,struct_back* sback,int p) { if (back[p].status == STATUS_READY) { if (opt->log!=NULL) { HTS_LOG(opt,LOG_WARNING); - fprintf(opt->log, "file not stored in cache due to bogus state (broken size, expected %d got %d): %s%s"LF, + fprintf(opt->log, "file not stored in cache due to bogus state (broken size, expected "LLintP" got "LLintP"): %s%s"LF, back[p].r.totalsize, back[p].r.size, back[p].url_adr,back[p].url_fil); } } else { if (opt->log!=NULL) { HTS_LOG(opt,LOG_INFO); - fprintf(opt->log, "incomplete file not yet stored in cache (expected %d got %d): %s%s"LF, + fprintf(opt->log, "incomplete file not yet stored in cache (expected "LLintP" got "LLintP"): %s%s"LF, back[p].r.totalsize, back[p].r.size, back[p].url_adr,back[p].url_fil); } } @@ -1482,9 +1482,7 @@ int back_add(struct_back* sback,httrackp* opt,cache_back* cache,char* adr,char* if (a) { #endif if (!test) { // non mode test -#if HTS_FAST_CACHE - uintptr_t pos=hash_pos; -#else +#if HTS_FAST_CACHE==0 int pos=-1; a+=strlen(buff); sscanf(a,"%d",&pos); // lire position |