summaryrefslogtreecommitdiff
path: root/src/htsindex.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2014-05-23 21:33:43 +0000
committerXavier Roche <xroche@users.noreply.github.com>2014-05-23 21:33:43 +0000
commitcefcc0426613cc761373e785980c87c77f8a8cb5 (patch)
treee64653268bcb93fc50bf23d22e38799c5bb31adc /src/htsindex.c
parent6ba50a2001bcfa1b467f69985a002fc064d8c807 (diff)
"const correctness" cleanup
added the following default flags: -Wformat -Wformat-security -Wmultichar -Wwrite-strings fixed several other warnings
Diffstat (limited to 'src/htsindex.c')
-rw-r--r--src/htsindex.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/htsindex.c b/src/htsindex.c
index 1d08012..1dca05c 100644
--- a/src/htsindex.c
+++ b/src/htsindex.c
@@ -103,7 +103,7 @@ Please visit our Website: http://www.httrack.com
/* End of Keyword Indexer Parameters */
-int strcpos(char *adr, char c);
+int strcpos(const char *adr, char c);
int mystrcmp(const void *_e1, const void *_e2);
// Global variables
@@ -468,8 +468,8 @@ void index_finish(const char *indexpath, int mode) {
/* Subroutines */
#if HTS_MAKE_KEYWORD_INDEX
-int strcpos(char *adr, char c) {
- char *apos = strchr(adr, c);
+int strcpos(const char *adr, char c) {
+ const char *apos = strchr(adr, c);
if (apos)
return (int) (apos - adr);