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

index 911796a4b7a27fba1b890f22ec5ff4994b1cf07c..5a82e21752936110a5672e1ce9078abef040a5d3 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);
 
 }