]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11061: [core] fix build with newer pcre v1.6
authorMike Jerris <mike@jerris.com>
Thu, 29 Mar 2018 15:17:44 +0000 (11:17 -0400)
committerMike Jerris <mike@jerris.com>
Mon, 7 May 2018 18:56:11 +0000 (14:56 -0400)
src/switch_regex.c

index 0531491aafc6989690e6f040a0872d357a294e29..0435115ac343876827e48fe1fb9ea26923bacec0 100644 (file)
@@ -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);
 
 }