1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 09:43:13 +02:00

api: fix type of value returned by function strcasestr

This commit is contained in:
Sébastien Helleu
2015-07-03 19:45:51 +02:00
parent 3e0ebc82a9
commit b13db0305d
9 changed files with 17 additions and 16 deletions
+3 -3
View File
@@ -341,7 +341,7 @@ string_strcmp_ignore_chars (const char *string1, const char *string2,
* Returns pointer to string found, or NULL if not found.
*/
char *
const char *
string_strcasestr (const char *string, const char *search)
{
int length_search;
@@ -1051,8 +1051,8 @@ string_regcomp (void *preg, const char *regex, int default_flags)
int
string_has_highlight (const char *string, const char *highlight_words)
{
char *msg, *highlight, *match, *match_pre, *match_post, *msg_pos;
char *pos, *pos_end;
const char *match, *match_pre, *match_post, *msg_pos;
char *msg, *highlight, *pos, *pos_end;
int end, length, startswith, endswith, wildcard_start, wildcard_end, flags;
if (!string || !string[0] || !highlight_words || !highlight_words[0])