kamailio: backport and move to PCRE2
[feed/telephony.git] / net / kamailio / patches / 031-regex-typos.patch
1 From 650b109dbcfe2c3083e09c987bae7ca39e4a19d2 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?=D0=94=D0=B8=D0=BB=D1=8F=D0=BD=20=D0=9F=D0=B0=D0=BB=D0=B0?=
3 =?UTF-8?q?=D1=83=D0=B7=D0=BE=D0=B2?= <git-dpa@aegee.org>
4 Date: Wed, 21 Jun 2023 21:34:21 +0200
5 Subject: [PATCH] regex: typos
6
7 ---
8 src/modules/regex/regex_mod.c | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11 --- a/src/modules/regex/regex_mod.c
12 +++ b/src/modules/regex/regex_mod.c
13 @@ -230,7 +230,7 @@ static void destroy(void)
14 }
15
16
17 -/*! \brief Convert the file content into regular expresions and store them in pcres */
18 +/*! \brief Convert the file content into regular expressions and store them in pcres */
19 static int load_pcres(int action)
20 {
21 int i, j;
22 @@ -307,7 +307,7 @@ static int load_pcres(int action)
23 }
24
25 llen = strlen(line);
26 - /* Check if the patter size is too big (aprox) */
27 + /* Check if the pattern size is too big (approx) */
28 if(strlen(patterns[i]) + llen >= group_max_size - 4) {
29 LM_ERR("pattern max file exceeded\n");
30 fclose(f);
31 @@ -387,7 +387,7 @@ static int load_pcres(int action)
32 pcres_tmp[i] = NULL;
33 }
34
35 - /* Compile the patters */
36 + /* Compile the patterns */
37 for(i = 0; i < num_pcres_tmp; i++) {
38
39 pcre_tmp = pcre_compile(