aports/main/freeswitch/pcre.patch
2018-04-06 05:19:22 +00:00

14 lines
499 B
Diff

diff --git a/src/switch_regex.c b/src/switch_regex.c
index 0531491..0435115 100644
--- a/src/switch_regex.c
+++ b/src/switch_regex.c
@@ -37,7 +37,7 @@ SWITCH_DECLARE(switch_regex_t *) switch_regex_compile(const char *pattern,
int options, const char **errorptr, int *erroroffset, const unsigned char *tables)
{
- return pcre_compile(pattern, options, errorptr, erroroffset, tables);
+ return (switch_regex_t *)pcre_compile(pattern, options, errorptr, erroroffset, tables);
}