diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-10 20:27:13 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-06-10 20:27:13 +0000 |
commit | 713b83f7b406858269863d92865b715470d6335c (patch) | |
tree | 79eb2733939d29388f0776f68da4b053427a61c9 /src/htscore.c | |
parent | 82e61ae9d68114bdcd6fafdb8bf823ae9ce69bef (diff) |
Added the following compiler flags:
* -Wcast-qual
* -Wmissing-parameter-type
* -Wold-style-definition
Diffstat (limited to 'src/htscore.c')
-rw-r--r-- | src/htscore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/htscore.c b/src/htscore.c index 80f7772..5a4871d 100644 --- a/src/htscore.c +++ b/src/htscore.c @@ -609,7 +609,7 @@ int httpmirror(char *url1, httrackp * opt) { // initialiser hachage hash_init(opt, &hash, opt->urlhack); // note: we need a cast because of the const - hash.liens = (const lien_url ***) &opt->liens; + hash.liens = (const lien_url *const*const*) &opt->liens; // copier adresse(s) dans liste des adresses { @@ -2483,7 +2483,7 @@ void host_ban(httrackp * opt, int ptr, while((heap(i)->adr[l]) && (l < 1020)) l++; if ((l > 0) && (l < 1020)) { // sécurité - if (strfield2(jump_identification(heap(i)->adr), host)) { // host + if (strfield2(jump_identification_const(heap(i)->adr), host)) { // host hts_log_print(opt, LOG_DEBUG, "Cancel: %s%s", heap(i)->adr, heap(i)->fil); hts_invalidate_link(opt, i); // invalidate hashtable entry |