From d9d5ef42a6bf1e31733b172539b8f50ff3215e1a Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Mon, 13 Nov 2023 15:23:55 +0100 Subject: [PATCH] seas: removed trailing spaces --- src/modules/seas/cluster.c | 8 +++--- src/modules/seas/encode_allow.c | 14 +++++----- src/modules/seas/encode_contact.c | 16 ++++++------ src/modules/seas/encode_contact.h | 4 +-- src/modules/seas/encode_content_disposition.c | 14 +++++----- src/modules/seas/encode_content_length.c | 14 +++++----- src/modules/seas/encode_content_type.c | 14 +++++----- src/modules/seas/encode_cseq.c | 16 ++++++------ src/modules/seas/encode_digest.c | 18 ++++++------- src/modules/seas/encode_expires.c | 14 +++++----- src/modules/seas/encode_expires.h | 4 +-- src/modules/seas/encode_header.c | 14 +++++----- src/modules/seas/encode_header.h | 4 +-- src/modules/seas/encode_msg.c | 16 ++++++------ src/modules/seas/encode_msg.h | 4 +-- src/modules/seas/encode_parameters.c | 18 ++++++------- src/modules/seas/encode_parameters.h | 4 +-- src/modules/seas/encode_route.c | 14 +++++----- src/modules/seas/encode_route.h | 4 +-- src/modules/seas/encode_to_body.c | 14 +++++----- src/modules/seas/encode_to_body.h | 4 +-- src/modules/seas/encode_uri.c | 26 +++++++++---------- src/modules/seas/encode_uri.h | 4 +-- src/modules/seas/encode_via.c | 14 +++++----- src/modules/seas/encode_via.h | 4 +-- src/modules/seas/event_dispatcher.c | 22 ++++++++-------- src/modules/seas/event_dispatcher.h | 4 +-- src/modules/seas/ha.c | 16 ++++++------ src/modules/seas/ha.h | 4 +-- src/modules/seas/seas_action.c | 12 ++++----- src/modules/seas/seas_action.h | 4 +-- src/modules/seas/seas_error.h | 4 +-- src/modules/seas/statistics.c | 8 +++--- src/modules/seas/statistics.h | 4 +-- src/modules/seas/utils.c | 16 ++++++------ src/modules/seas/utils.h | 4 +-- src/modules/seas/xaddress.h | 4 +-- 37 files changed, 191 insertions(+), 191 deletions(-) diff --git a/src/modules/seas/cluster.c b/src/modules/seas/cluster.c index 214399540c3..b16f13fe542 100644 --- a/src/modules/seas/cluster.c +++ b/src/modules/seas/cluster.c @@ -14,8 +14,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 */ @@ -36,13 +36,13 @@ char *cluster_cfg; /** - * Parses the PING configuration string. Its format is + * Parses the PING configuration string. Its format is * "ping_period:pings_lost:ping_timeout" * ping_period : time between pings * pings_lost: number of lost pings before failure * ping_timeout: time to consider a ping failed * - * returns + * returns * 0 if no clusters present * -1 if config is malformed (unable to parse); * 1 if config is successfully set diff --git a/src/modules/seas/encode_allow.c b/src/modules/seas/encode_allow.c index 984f8e1ffad..29d3e50cc70 100644 --- a/src/modules/seas/encode_allow.c +++ b/src/modules/seas/encode_allow.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: encode_allow.c - * + * * Description: [en|de]code allow header - * + * * Version: 1.0 * Created: 21/11/05 20:40:25 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ diff --git a/src/modules/seas/encode_contact.c b/src/modules/seas/encode_contact.c index 39c9eac1cc5..bf49e7c0d90 100644 --- a/src/modules/seas/encode_contact.c +++ b/src/modules/seas/encode_contact.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: encode_contact.c - * + * * Description: functions to encode/decode/print the contact header - * + * * Version: 1.0 * Created: 20/11/05 04:24:55 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ @@ -58,7 +58,7 @@ * encoding is: * 1: flags * 0x01 this is a star contact (*) - *[ + *[ * 1: number of contacts present * N: fore each contact present, the length of the contact structure * N*M: the contact structures concatenated diff --git a/src/modules/seas/encode_contact.h b/src/modules/seas/encode_contact.h index 72e00f17ded..027028c0f25 100644 --- a/src/modules/seas/encode_contact.h +++ b/src/modules/seas/encode_contact.h @@ -14,8 +14,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 */ diff --git a/src/modules/seas/encode_content_disposition.c b/src/modules/seas/encode_content_disposition.c index f3f969b1a39..151baf96cbe 100644 --- a/src/modules/seas/encode_content_disposition.c +++ b/src/modules/seas/encode_content_disposition.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: encode_content_disposition.c - * + * * Description: [en|de]encodes content disposition - * + * * Version: 1.0 * Created: 21/11/05 20:36:19 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ diff --git a/src/modules/seas/encode_content_length.c b/src/modules/seas/encode_content_length.c index 5184bb2b091..57ce014fba5 100644 --- a/src/modules/seas/encode_content_length.c +++ b/src/modules/seas/encode_content_length.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: encode_content_length.c - * + * * Description: Function to encode content-length headers. - * + * * Version: 1.0 * Created: 21/11/05 02:02:58 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ diff --git a/src/modules/seas/encode_content_type.c b/src/modules/seas/encode_content_type.c index 3344a1ee977..5605b40257a 100644 --- a/src/modules/seas/encode_content_type.c +++ b/src/modules/seas/encode_content_type.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: encode_content_type.c - * + * * Description: [en|de]code content type - * + * * Version: 1.0 * Created: 21/11/05 20:40:25 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ diff --git a/src/modules/seas/encode_cseq.c b/src/modules/seas/encode_cseq.c index 09e1f934f49..ab5dd928b45 100644 --- a/src/modules/seas/encode_cseq.c +++ b/src/modules/seas/encode_cseq.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: xaddress.c - * + * * Description: Address manipulation tools - * + * * Version: 1.0 * Created: 17/11/05 02:09:44 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ #define _GNU_SOURCE @@ -61,7 +61,7 @@ int encode_cseq(char *hdrstart, int hdrlen, struct cseq_body *body, unsigned int cseqnum; unsigned char i; - /*which is the first bit set to 1 ? if i==0, the first bit, + /*which is the first bit set to 1 ? if i==0, the first bit, * if i==31, the last, if i==32, none*/ for(i = 0; (!(body->method_id & (0x01 << i))) && i < 32; i++) ; diff --git a/src/modules/seas/encode_digest.c b/src/modules/seas/encode_digest.c index d98a80ec550..51f287b331d 100644 --- a/src/modules/seas/encode_digest.c +++ b/src/modules/seas/encode_digest.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: encode_digest.c - * + * * Description: functions to encode/decode/print Digest headers ([proxy,www]-[authenticate,require]) - * + * * Version: 1.0 * Created: 20/11/05 04:24:55 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ #define _GNU_SOURCE @@ -73,8 +73,8 @@ * HAS_QoP_F 0x01 * HAS_NC_F 0x02 * 2: hdr-start based pointer to where the scheme starts + length of the scheme (must be Digest). - * - * for each field present, there are 2 bytes, one pointing the place where it starts, + * + * for each field present, there are 2 bytes, one pointing the place where it starts, * the next signaling how long this field is. The URI is a special case, and is composed of 1 * byte telling how long is the URI structure, and then the encoded URI structure. */ diff --git a/src/modules/seas/encode_expires.c b/src/modules/seas/encode_expires.c index 41a56eea522..a467ac47a22 100644 --- a/src/modules/seas/encode_expires.c +++ b/src/modules/seas/encode_expires.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: encode_expires.c - * + * * Description: functions to [en|de]code expires header - * + * * Version: 1.0 * Created: 22/11/05 00:05:54 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ diff --git a/src/modules/seas/encode_expires.h b/src/modules/seas/encode_expires.h index 31696ed0518..7a11e365240 100644 --- a/src/modules/seas/encode_expires.h +++ b/src/modules/seas/encode_expires.h @@ -14,8 +14,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 */ diff --git a/src/modules/seas/encode_header.c b/src/modules/seas/encode_header.c index 82e5898cbed..055821d37d5 100644 --- a/src/modules/seas/encode_header.c +++ b/src/modules/seas/encode_header.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: xcontact.c - * + * * Description: Contact encoding functions - * + * * Version: 1.0 * Created: 19/11/05 14:33:38 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ #define _GNU_SOURCE diff --git a/src/modules/seas/encode_header.h b/src/modules/seas/encode_header.h index 4ce5c8e00df..9168c63493e 100644 --- a/src/modules/seas/encode_header.h +++ b/src/modules/seas/encode_header.h @@ -14,8 +14,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 */ diff --git a/src/modules/seas/encode_msg.c b/src/modules/seas/encode_msg.c index 55c00094329..179f570bfe4 100644 --- a/src/modules/seas/encode_msg.c +++ b/src/modules/seas/encode_msg.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: main.c - * + * * Description: functions to encode a message - * + * * Version: 1.0 * Created: 14/11/05 13:42:53 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ @@ -259,7 +259,7 @@ int encode_msg(struct sip_msg *msg, char *payload, int len) /*now copy the number of bytes that the headers-meta-section has occupied,right afther * headers-meta-section(the array with ['v',[2:where],'r',[2:where],'R',[2:where],...] * this is to know where the LAST header ends, since the length of each header-struct - * is calculated substracting the nextHeaderStart - presentHeaderStart + * is calculated substracting the nextHeaderStart - presentHeaderStart * the k+1 is because payload[k] is usually the letter*/ memcpy(&payload[k + 1], &j, 2); k += 3; diff --git a/src/modules/seas/encode_msg.h b/src/modules/seas/encode_msg.h index 12a15e7efa9..751e95a2738 100644 --- a/src/modules/seas/encode_msg.h +++ b/src/modules/seas/encode_msg.h @@ -14,8 +14,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 */ diff --git a/src/modules/seas/encode_parameters.c b/src/modules/seas/encode_parameters.c index 339858f6c0f..f30efb864ca 100644 --- a/src/modules/seas/encode_parameters.c +++ b/src/modules/seas/encode_parameters.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: encode_parameters.c - * + * * Description: Functions to encode/print parameters - * + * * Version: 1.0 * Created: 25/01/06 17:46:04 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ #define _GNU_SOURCE @@ -50,7 +50,7 @@ /** * Returns how many bytes in *where have been used * - * TODO this is little shitty, someone should unify all the param flavours + * TODO this is little shitty, someone should unify all the param flavours * to a sigle universal type of parameter (to_param,param,disposition_param) * the way is done here, at least, we don't have the parameter-hanling code spread all around. */ @@ -190,7 +190,7 @@ int encode_parameters( return 0; /*the first parameter start index, I suppose paramstart points to the first letter of the first parameter: sip:elias@voztele.com;param1=true;param2=false - paramstart points to __^ + paramstart points to __^ each parameter is codified with its {param_name_start_idx,[param_value_start_idx|next_param_start_idx]} */ where[j++] = paramstart - hdrstart; while(i < paramlen) { diff --git a/src/modules/seas/encode_parameters.h b/src/modules/seas/encode_parameters.h index ed9a4ccca6d..4f0051a99f0 100644 --- a/src/modules/seas/encode_parameters.h +++ b/src/modules/seas/encode_parameters.h @@ -14,8 +14,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 */ diff --git a/src/modules/seas/encode_route.c b/src/modules/seas/encode_route.c index 82d4da36b63..589e955eaec 100644 --- a/src/modules/seas/encode_route.c +++ b/src/modules/seas/encode_route.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: encode_route.c - * + * * Description: functions to encode/decode/print the route header - * + * * Version: 1.0 * Created: 20/11/05 04:24:55 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ diff --git a/src/modules/seas/encode_route.h b/src/modules/seas/encode_route.h index 512dc17c0d2..9544e66bd1b 100644 --- a/src/modules/seas/encode_route.h +++ b/src/modules/seas/encode_route.h @@ -14,8 +14,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 */ diff --git a/src/modules/seas/encode_to_body.c b/src/modules/seas/encode_to_body.c index 9b760509ed7..801949abbde 100644 --- a/src/modules/seas/encode_to_body.c +++ b/src/modules/seas/encode_to_body.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: xaddress.c - * + * * Description: Address manipulation tools - * + * * Version: 1.0 * Created: 17/11/05 02:09:44 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ #define _GNU_SOURCE diff --git a/src/modules/seas/encode_to_body.h b/src/modules/seas/encode_to_body.h index c91d940d6a8..d3988500296 100644 --- a/src/modules/seas/encode_to_body.h +++ b/src/modules/seas/encode_to_body.h @@ -14,8 +14,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 */ diff --git a/src/modules/seas/encode_uri.c b/src/modules/seas/encode_uri.c index 1bcaea5ad9b..2dc3bd77811 100644 --- a/src/modules/seas/encode_uri.c +++ b/src/modules/seas/encode_uri.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: xuri.c - * + * * Description: first trial to implement xuri - * + * * Version: 1.0 * Created: 16/11/05 18:07:24 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ @@ -63,9 +63,9 @@ * * 1: The first byte of the structure, is a * HEADER_START-based pointer to the beginning of the URI - * (including the "sip:"). - * 1: The next byte is the length of the uri, so URIMAX - * is 256 (enough...) + * (including the "sip:"). + * 1: The next byte is the length of the uri, so URIMAX + * is 256 (enough...) * 2: Flags specifying the parts that are present in the URI * * as follows: @@ -102,14 +102,14 @@ * The reason to have the OTHER and HEADERS flags at the * beginning(just after the strictly-uri stuff), is that it * will be necessary to know the length of the parameters - * section and the headers section. + * section and the headers section. * * The parameters can * appear in an arbitrary order, so they won't be following * the convention of transport-ttl-user-method-maddr-lr, so * we can't rely on the next pointer to compute the length - * of the previous pointer field, as the ttl param can - * appear before the transport param. so the parameter + * of the previous pointer field, as the ttl param can + * appear before the transport param. so the parameter * pointers must have 2 bytes: pointer+length. * */ diff --git a/src/modules/seas/encode_uri.h b/src/modules/seas/encode_uri.h index 0a6074343ee..c4b82a2dd0f 100644 --- a/src/modules/seas/encode_uri.h +++ b/src/modules/seas/encode_uri.h @@ -14,8 +14,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 */ diff --git a/src/modules/seas/encode_via.c b/src/modules/seas/encode_via.c index 285b6b69a2a..49a1b1fd4e9 100644 --- a/src/modules/seas/encode_via.c +++ b/src/modules/seas/encode_via.c @@ -14,26 +14,26 @@ * 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 */ /* * ===================================================================================== - * + * * Filename: encode_via.c - * + * * Description: functions to encode VIA headers - * + * * Version: 1.0 * Created: 21/11/05 02:30:50 CET * Revision: none * Compiler: gcc - * + * * Author: Elias Baixas (EB), elias@conillera.net * Company: VozTele.com - * + * * ===================================================================================== */ diff --git a/src/modules/seas/encode_via.h b/src/modules/seas/encode_via.h index 113d7a00819..226741aed5b 100644 --- a/src/modules/seas/encode_via.h +++ b/src/modules/seas/encode_via.h @@ -14,8 +14,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 */ diff --git a/src/modules/seas/event_dispatcher.c b/src/modules/seas/event_dispatcher.c index e3d42bd9847..57483212686 100644 --- a/src/modules/seas/event_dispatcher.c +++ b/src/modules/seas/event_dispatcher.c @@ -14,8 +14,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 */ @@ -76,7 +76,7 @@ static int open_server_sockets( /** Main loop for the Event Dispatcher process. - * + * */ int dispatcher_main_loop(void) { @@ -348,7 +348,7 @@ int dispatcher_main_loop(void) /** - * opens the server socket, which attends (accepts) the clients, that is: + * opens the server socket, which attends (accepts) the clients, that is: * params: * address: * address to which to listen @@ -423,7 +423,7 @@ union helper }; /** - * Sends event + * Sends event * * returns * 0 OK @@ -570,7 +570,7 @@ static inline int add_new_as(int event_idx, int action_idx, struct as_entry *as) } } } - /*TODO attention, this is pkg_malloc because only the Event_Dispatcher process + /*TODO attention, this is pkg_malloc because only the Event_Dispatcher process * has to use it !!*/ if(!(the_as->ev_buffer.s = pkg_malloc(AS_BUF_SIZE))) { LM_ERR("unable to alloc pkg mem for the event buffer\n"); @@ -769,14 +769,14 @@ static int handle_as_data(int fd) /** * This function processess the Application Server buffer. We do buffered * processing because it increases performance quite a bit. Any message - * sent from the AS comes with the first 2 bytes as an NBO unsigned short int + * sent from the AS comes with the first 2 bytes as an NBO unsigned short int * which says the length of the following message (header and payload). * This way, we avoid multiple small reads() to the socket, which (as we know), consumes * far more processor because of the kernel read(2) system call. The drawback * is the added complexity of maintaining a buffer, the bytes read, and looking * if there is a complete message already prepared. * - * Actions are supposed to be small, that's why BUF_SIZE is 2000 bytes length. + * Actions are supposed to be small, that's why BUF_SIZE is 2000 bytes length. * Most of the actions will be that size or less. That is why the 4 bytes telling the * length of the Action payload are included in its size. This way you can use a fixed size * buffer to receive the Actions and not need to be pkb_malloc'ing for each new event. @@ -1019,7 +1019,7 @@ static int handle_unc_as_data(int fd) return -2; } unc_as_t[i].flags |= HAS_NAME; - /* the loop's upper bound, + /* the loop's upper bound, * if 'i' is in the lower part, then look for an unc_as in the upper part*/ k = (i >= MAX_UNC_AS_NR ? MAX_UNC_AS_NR : 2 * MAX_UNC_AS_NR); /* the loop's lower bound */ @@ -1087,14 +1087,14 @@ static inline int read_name(int sock, char *dst, int dstlen) return namelen; } -/* handle new App Server connect. +/* handle new App Server connect. * params: * fd: * fd on which to accept. * which: * if the fd is the event one, which='e', if is action, which='a' * - * TODO: not very reliable, because if someone connects() to one of the serversockets + * TODO: not very reliable, because if someone connects() to one of the serversockets * but not to the other one, then synchronization would be lost, and any subsequent connect * attempts would fail (remember, we receive a connect in event[] and wait for a connect in action) * the point is, the connects must allways come in pairs, if one comes alone, we lost sync. diff --git a/src/modules/seas/event_dispatcher.h b/src/modules/seas/event_dispatcher.h index e974ae540df..77b194d3c8b 100644 --- a/src/modules/seas/event_dispatcher.h +++ b/src/modules/seas/event_dispatcher.h @@ -14,8 +14,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 */ diff --git a/src/modules/seas/ha.c b/src/modules/seas/ha.c index a880ebba9da..6134f3d37a8 100644 --- a/src/modules/seas/ha.c +++ b/src/modules/seas/ha.c @@ -14,8 +14,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 */ @@ -110,13 +110,13 @@ int print_pingtable(struct ha *ta, int idx, int lock) } /** - * Parses the PING configuration string. Its format is + * Parses the PING configuration string. Its format is * "ping_period:pings_lost:ping_timeout" * ping_period : time between pings * pings_lost: number of lost pings before failure * ping_timeout: time to consider a ping failed * - * returns + * returns * 0 if config is not set * -1 if config is malformed (unable to parse); * 1 if config is successfully set @@ -378,13 +378,13 @@ void destroy_pingtable(struct ha *table) /** * event_length(4) UNSIGNED INT includes the length 4 bytes itself - * type(1), + * type(1), * processor_id(1), 0 means nobody, 0xFF means everybody, 0 diff --git a/src/modules/seas/utils.h b/src/modules/seas/utils.h index 3f8cf6b3042..c1be3727744 100644 --- a/src/modules/seas/utils.h +++ b/src/modules/seas/utils.h @@ -14,8 +14,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 */ diff --git a/src/modules/seas/xaddress.h b/src/modules/seas/xaddress.h index 828f974de09..89051d335ad 100644 --- a/src/modules/seas/xaddress.h +++ b/src/modules/seas/xaddress.h @@ -14,8 +14,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 */