Skip to content

Commit

Permalink
fix expresion - expression typo
Browse files Browse the repository at this point in the history
(cherry picked from commit c2d0b38)
  • Loading branch information
razvancrainea committed Aug 30, 2016
1 parent 098e448 commit dc732f2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions modules/mangler/mangler.c
Expand Up @@ -161,7 +161,7 @@ int prepare (void)
{

/* using pre-compiled expressions to speed things up*/
compile_expresions(PORT_REGEX,IP_REGEX);
compile_expressions(PORT_REGEX,IP_REGEX);

#ifdef DEMO
fprintf(stdout,"===============NEW RUN================\n");
Expand Down Expand Up @@ -196,7 +196,7 @@ static int mod_init (void)
static void destroy (void)
{
/*free some compiled regex expressions */
free_compiled_expresions();
free_compiled_expressions();
#ifdef DEMO
fprintf(stdout,"Freeing pre-compiled expressions\n");
#endif
Expand Down
4 changes: 2 additions & 2 deletions modules/mangler/sdp_mangler.c
Expand Up @@ -490,7 +490,7 @@ sdp_mangle_ip (struct sip_msg *msg, char *oldip, char *newip)

}

int compile_expresions(char *port,char *ip)
int compile_expressions(char *port,char *ip)
{
portExpression = NULL;
portExpression = pkg_malloc(sizeof(regex_t));
Expand Down Expand Up @@ -527,7 +527,7 @@ int compile_expresions(char *port,char *ip)
return 0;
}

int free_compiled_expresions(void)
int free_compiled_expressions(void)
{
if (portExpression != NULL)
{
Expand Down
6 changes: 3 additions & 3 deletions modules/mangler/sdp_mangler.h
Expand Up @@ -24,7 +24,7 @@
* 2003-04-07 first version.
*/

/* TO DO: precompiled expresions */
/* TO DO: precompiled expressions */

#ifndef SDP_MANGLER_H
#define SDP_MANGLER_H
Expand Down Expand Up @@ -88,7 +88,7 @@ int sdp_mangle_port (struct sip_msg *msg, char *offset, char *unused);

int sdp_mangle_ip (struct sip_msg *msg, char *oldip, char *newip);

int compile_expresions(char *port,char *ip);
int free_compiled_expresions();
int compile_expressions(char *port,char *ip);
int free_compiled_expressions();

#endif
2 changes: 1 addition & 1 deletion modules/regex/regex_mod.c
Expand Up @@ -254,7 +254,7 @@ static void destroy(void)
}


/*! \brief Convert the file content into regular expresions and store them in pcres */
/*! \brief Convert the file content into regular expressions and store them in pcres */
static int load_pcres(int action)
{
int i, j;
Expand Down

0 comments on commit dc732f2

Please sign in to comment.