diff options
author | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-23 21:33:43 +0000 |
---|---|---|
committer | Xavier Roche <xroche@users.noreply.github.com> | 2014-05-23 21:33:43 +0000 |
commit | cefcc0426613cc761373e785980c87c77f8a8cb5 (patch) | |
tree | e64653268bcb93fc50bf23d22e38799c5bb31adc /src/httrack-library.h | |
parent | 6ba50a2001bcfa1b467f69985a002fc064d8c807 (diff) |
"const correctness" cleanup
added the following default flags:
-Wformat
-Wformat-security
-Wmultichar
-Wwrite-strings
fixed several other warnings
Diffstat (limited to 'src/httrack-library.h')
-rw-r--r-- | src/httrack-library.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/httrack-library.h b/src/httrack-library.h index d92e377..cfc049b 100644 --- a/src/httrack-library.h +++ b/src/httrack-library.h @@ -198,7 +198,7 @@ HTSEXT_API char *jump_normalized(const char *); HTSEXT_API char *jump_toport(const char *); HTSEXT_API char *fil_normalized(const char *source, char *dest); HTSEXT_API char *adr_normalized(const char *source, char *dest); -HTSEXT_API char *hts_rootdir(char *file); +HTSEXT_API const char *hts_rootdir(char *file); /* Escaping URLs */ HTSEXT_API void unescape_amp(char *s); @@ -239,7 +239,7 @@ HTSEXT_API void get_httptype(httrackp * opt, char *s, const char *fil, HTSEXT_API int is_knowntype(httrackp * opt, const char *fil); HTSEXT_API int is_userknowntype(httrackp * opt, const char *fil); HTSEXT_API int is_dyntype(const char *fil); -HTSEXT_API char *get_ext(char *catbuff, size_t size, const char *fil); +HTSEXT_API const char *get_ext(char *catbuff, size_t size, const char *fil); /* Ugly string tools */ HTSEXT_API char *concat(char *catbuff, size_t size, const char *a, const char *b); |