Skip to content

Commit

Permalink
mangler: removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 13, 2023
1 parent a1c488a commit 1748464
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions src/modules/mangler/common.h
Expand Up @@ -16,8 +16,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand Down
10 changes: 5 additions & 5 deletions src/modules/mangler/contact_ops.c
Expand Up @@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand Down Expand Up @@ -50,9 +50,9 @@ int encode_contact(struct sip_msg *msg, char *encoding_prefix, char *public_ip)


/*
* I have a list of contacts in contact->parsed which is of type contact_body_t
* I have a list of contacts in contact->parsed which is of type contact_body_t
* inside i have a contact->parsed->contact which is the head of the list of contacts
* inside it is a
* inside it is a
* str uri;
* struct contact *next;
* I just have to visit each uri and encode each uri according to a scheme
Expand Down Expand Up @@ -561,7 +561,7 @@ int decode2format(str *uri, char separator, struct uri_format *format)
}


/* we must be in state EX_RCVPROTO and protocol is between lastpos and
/* we must be in state EX_RCVPROTO and protocol is between lastpos and
* end@ */
if(state != EX_RCVPROTO)
return -6;
Expand Down
4 changes: 2 additions & 2 deletions src/modules/mangler/contact_ops.h
Expand Up @@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand Down
6 changes: 3 additions & 3 deletions src/modules/mangler/ip_helper.c
Expand Up @@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand Down Expand Up @@ -165,7 +165,7 @@ unsigned int make_mask(unsigned int length)
netmask is specified and inserts the netmask into mask.
Cuts of the netmask of the string, if it founds a netmask !!!
Returns 0 if no netmask found, -1 if netmask isn't valid, and
1 if successful.
1 if successful.
According to this function a mask is in form of 255.255.192.0
so an ip/mask looks like 10.0.0.0/255.255.192.0
we will extend it to 10.0.0.0/18 which will be also valid
Expand Down
4 changes: 2 additions & 2 deletions src/modules/mangler/ip_helper.h
Expand Up @@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand Down
4 changes: 2 additions & 2 deletions src/modules/mangler/mangler.h
Expand Up @@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand Down
12 changes: 6 additions & 6 deletions src/modules/mangler/sdp_mangler.c
Expand Up @@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand Down Expand Up @@ -142,9 +142,9 @@ int sdp_mangle_port(struct sip_msg *msg, char *offset, char *unused)
pmatch.rm_eo--; /* return with one space */
#endif

/*
/*
for BSD and Solaris we avoid memrchr
pos = (char *) memrchr (begin + pmatch.rm_so, ' ',pmatch.rm_eo - pmatch.rm_so);
pos = (char *) memrchr (begin + pmatch.rm_so, ' ',pmatch.rm_eo - pmatch.rm_so);
*/
pos = begin + pmatch.rm_eo;
#ifdef EXTRA_DEBUG
Expand Down Expand Up @@ -434,9 +434,9 @@ int sdp_mangle_ip(struct sip_msg *msg, char *oldip, char *newip)
pmatch.rm_eo--; /* return with one space,\n,\r */
#endif

/*
/*
for BSD and Solaris we avoid memrchr
pos = (char *) memrchr (begin + pmatch.rm_so, ' ',pmatch.rm_eo - pmatch.rm_so);
pos = (char *) memrchr (begin + pmatch.rm_so, ' ',pmatch.rm_eo - pmatch.rm_so);
*/
pos = begin + pmatch.rm_eo;
do {
Expand Down
10 changes: 5 additions & 5 deletions src/modules/mangler/sdp_mangler.h
Expand Up @@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand All @@ -32,10 +32,10 @@


/* With STRICT_CHECK off:
If you define a port like 41231311 and BEST_EFFORT is defined it will
If you define a port like 41231311 and BEST_EFFORT is defined it will
consider a port the first 5 digits
Similarly an ip like 12.31.12.313131132131 will be mangled with only 3 digits
from the last group
from the last group
*/

#ifdef STRICT_CHECK
Expand Down Expand Up @@ -64,7 +64,7 @@ extern regex_t *ipExpression;


/* replaces all appearances of a port in lines like m=audio port with
a new value for port which is oldvalue+offset
a new value for port which is oldvalue+offset
@param msg a pointer to a sip message
@param offset value of an offset.Must be a numeric format like "-12345"
@param unused unused parameter
Expand Down
4 changes: 2 additions & 2 deletions src/modules/mangler/utils.c
Expand Up @@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand Down
10 changes: 5 additions & 5 deletions src/modules/mangler/utils.h
Expand Up @@ -15,8 +15,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/

Expand All @@ -25,13 +25,13 @@

#include "../../core/parser/msg_parser.h" /* struct sip_msg */

/* replace a part of a sip message identified by (start address,length) with a new part
/* replace a part of a sip message identified by (start address,length) with a new part
@param msg a pointer to a sip message
@param oldstr the start address of the part to be modified
@param oldlen the length of the part being modified
@param newstr the start address of the part to be added
@param oldlen the length of the part being added
@return 0 in case of success, negative on error
@return 0 in case of success, negative on error
*/

int patch(struct sip_msg *msg, char *oldstr, unsigned int oldlen, char *newstr,
Expand All @@ -40,7 +40,7 @@ int patch(struct sip_msg *msg, char *oldstr, unsigned int oldlen, char *newstr,
modify the Content-Length header of a sip message
@param msg a pointer to a sip message
@param newValue the new value of Content-Length
@return 0 in case of success, negative on error
@return 0 in case of success, negative on error
*/
int patch_content_length(struct sip_msg *msg, unsigned int newValue);

Expand Down

0 comments on commit 1748464

Please sign in to comment.