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/htsindex.c | |
parent | 82e61ae9d68114bdcd6fafdb8bf823ae9ce69bef (diff) |
Added the following compiler flags:
* -Wcast-qual
* -Wmissing-parameter-type
* -Wold-style-definition
Diffstat (limited to 'src/htsindex.c')
-rw-r--r-- | src/htsindex.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/htsindex.c b/src/htsindex.c index 1dca05c..3c4c9da 100644 --- a/src/htsindex.c +++ b/src/htsindex.c @@ -291,7 +291,7 @@ int index_keyword(const char *html_data, LLint size, const char *mime, e++; /* 0 means "once" */ - if (strncmp((const char *) fslash(catbuff, sizeof(catbuff), (char *) indexpath), filename, strlen(indexpath)) == 0) // couper + if (strncmp((const char *) fslash(catbuff, sizeof(catbuff), (const char *) indexpath), filename, strlen(indexpath)) == 0) // couper strcpybuff(savelst, filename + strlen(indexpath)); else strcpybuff(savelst, filename); @@ -478,8 +478,8 @@ int strcpos(const char *adr, char c) { } int mystrcmp(const void *_e1, const void *_e2) { - char **e1 = (char **) _e1; - char **e2 = (char **) _e2; + const char *const*const e1 = (const char *const*) _e1; + const char *const*const e2 = (const char *const*) _e2; return strcmp(*e1, *e2); } |