diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2012-01-26 18:18:20 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2012-01-26 18:18:20 +0100 |
commit | 9347bae9623a5aa26436c7a822e9b8c1d39c14f2 (patch) | |
tree | 731205227618ca62574713e157cce38e3e23a90a /src/core/wee-string.c | |
parent | 9a821b9d3cd5a9970520a742472547e7bb78ae24 (diff) | |
download | weechat-9347bae9623a5aa26436c7a822e9b8c1d39c14f2.zip |
api: replace type "regex_t *" by "void *" in function string_regcomp (fix ruby compilation with autotools)
Diffstat (limited to 'src/core/wee-string.c')
-rw-r--r-- | src/core/wee-string.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/wee-string.c b/src/core/wee-string.c index f063dfa5e..99b9dcf9c 100644 --- a/src/core/wee-string.c +++ b/src/core/wee-string.c @@ -804,13 +804,13 @@ string_regex_flags (const char *regex, int default_flags, int *flags) */ int -string_regcomp (regex_t *preg, const char *regex, int default_flags) +string_regcomp (void *preg, const char *regex, int default_flags) { const char *ptr_regex; int flags; ptr_regex = string_regex_flags (regex, default_flags, &flags); - return regcomp (preg, ptr_regex, flags); + return regcomp ((regex_t *)preg, ptr_regex, flags); } /* |