Skip to content

Commit

Permalink
sctp: removed trailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Nov 13, 2023
1 parent f4ada96 commit 865ed13
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/modules/sctp/sctp_ev.h
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2009 iptelorg GmbH
*
* Permission to use, copy, modify, and distribute this software for any
Expand Down
8 changes: 4 additions & 4 deletions src/modules/sctp/sctp_options.c
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2008 iptelorg GmbH
*
* Permission to use, copy, modify, and distribute this software for any
Expand All @@ -13,13 +13,13 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
/*
* sctp options
*/

/*!
* \file
* \brief SIP-router core ::
* \brief SIP-router core ::
* \ingroup core
* Module: \ref core
*/
Expand Down Expand Up @@ -639,7 +639,7 @@ static void set_sack_delay(str *gname, str *name)
} else
#endif /* SCTP_DELAYED_SACK */
{
/* setting SCTP_DELAYED_SACK failed or no lib support for
/* setting SCTP_DELAYED_SACK failed or no lib support for
SCTP_DELAYED_SACK => try the old obsolete SCTP_DELAYED_ACK_TIME */
#ifdef SCTP_DELAYED_ACK_TIME
memset(&sack_val, 0, sizeof(sack_val)); /* zero everything we don't
Expand Down
4 changes: 2 additions & 2 deletions src/modules/sctp/sctp_options.h
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2008 iptelorg GmbH
*
* Permission to use, copy, modify, and distribute this software for any
Expand All @@ -13,7 +13,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
/*
* sctp options
*/

Expand Down
2 changes: 1 addition & 1 deletion src/modules/sctp/sctp_rpc.c
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2009 iptelorg GmbH
*
* Permission to use, copy, modify, and distribute this software for any
Expand Down
2 changes: 1 addition & 1 deletion src/modules/sctp/sctp_rpc.h
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2009 iptelorg GmbH
*
* Permission to use, copy, modify, and distribute this software for any
Expand Down
28 changes: 14 additions & 14 deletions src/modules/sctp/sctp_server.c
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2008 iptelorg GmbH
*
* Permission to use, copy, modify, and distribute this software for any
Expand All @@ -13,13 +13,13 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
* sctp one to many
/*
* sctp one to many
*/

/*!
* \file
* \brief SIP-router core ::
* \brief SIP-router core ::
* \ingroup core
* Module: \ref core
*/
Expand Down Expand Up @@ -855,7 +855,7 @@ static int sctp_bind_sock(struct socket_info *sock_info)
if(ai->su.s.sa_family == AF_INET6)
LOG(L_ERR, "ERROR: sctp_bind_sock: might be caused by using a "
"link local address, try site local or global\n");
/* try to continue, a secondary address bind failure is not
/* try to continue, a secondary address bind failure is not
* critical */
}
return 0;
Expand Down Expand Up @@ -1375,7 +1375,7 @@ static void sctp_con_add(struct sctp_con_elem* e)
unsigned hash;
DBG("sctp_con_add(%p) ( ser id %d, assoc_id %d)\n",
e, e->con.id, e->con.assoc_id);

e->l.next_id=e->l.prev_id=0;
e->l.next_assoc=e->l.prev_assoc=0;
#ifdef SCTP_ADDR_HASH
Expand Down Expand Up @@ -1640,7 +1640,7 @@ void sctp_con_tracking_flush()
}


/** using id, get the corresponding sctp assoc & socket.
/** using id, get the corresponding sctp assoc & socket.
* @param id - ser unique assoc id
* @param si - result parameter, filled with the socket info on success
* @param remote - result parameter, filled with the address and port
Expand Down Expand Up @@ -1747,7 +1747,7 @@ int sctp_con_get_id(unsigned int assoc_id, union sockaddr_union *remote,


#ifdef SCTP_ADDR_HASH
/** using the dest. & source socket, get the corresponding id and assoc_id
/** using the dest. & source socket, get the corresponding id and assoc_id
* @param remote - peer address & port
* @param si - local source socket
* @param assoc_id - result, filled with the sctp assoc_id
Expand Down Expand Up @@ -2070,7 +2070,7 @@ static char *sctp_paddr_change_state2s(unsigned int state)
case SCTP_ADDR_MADE_PRIM:
s = "SCTP_ADDR_MADE_PRIM";
break;
/* not supported by lksctp 1.0.6
/* not supported by lksctp 1.0.6
case SCTP_ADDR_CONFIRMED:
s="SCTP_ADDR_CONFIRMED";
break;
Expand Down Expand Up @@ -2107,7 +2107,7 @@ static int sctp_handle_send_failed(struct socket_info *si,
retries = snp->sn_send_failed.ssf_info.sinfo_context;

/* don't retry on explicit remote error
* (unfortunately we can't be more picky than this, we get no
* (unfortunately we can't be more picky than this, we get no
* indication in the SEND_FAILED notification for other error
* reasons (e.g. ABORT received, INIT timeout a.s.o)
*/
Expand Down Expand Up @@ -2203,7 +2203,7 @@ static int sctp_handle_assoc_change(struct socket_info *si,
#endif /* SCTP_CONN_REUSE */
if(unlikely((unsigned)atomic_get(sctp_conn_no)
> (unsigned)cfg_get(sctp, sctp_cfg, max_assocs))) {
/* maximum assoc exceeded => we'll have to immediately
/* maximum assoc exceeded => we'll have to immediately
close it */
memset(&sinfo, 0, sizeof(sinfo));
sinfo.sinfo_flags = SCTP_UNORDERED | SCTP_ABORT;
Expand Down Expand Up @@ -2254,10 +2254,10 @@ static int sctp_handle_assoc_change(struct socket_info *si,
case SCTP_CANT_STR_ASSOC:
SCTP_STATS_CONNECT_FAILED();
/* do nothing when failing to start an assoc
(in this case we never see SCTP_COMM_UP so we never
(in this case we never see SCTP_COMM_UP so we never
track the assoc) */
#ifdef USE_DST_BLOCKLIST
/* blocklist only if send_retries is turned off (if on we don't
/* blocklist only if send_retries is turned off (if on we don't
know here if we did retry or we are at the first error) */
if(cfg_get(sctp, sctp_cfg, send_retries) == 0)
dst_blocklist_su(BLST_ERR_CONNECT, PROTO_SCTP, su, 0, 0);
Expand Down Expand Up @@ -2779,7 +2779,7 @@ static int sctp_msg_send_ext(struct dest_info *dst, char *buf, unsigned len,
msg.msg_namelen = tolen;
#else /* __OS_* */
/* fallback for solaris and others, sent back to
the address recorded (not exactly what we want, but there's
the address recorded (not exactly what we want, but there's
no way to fallback to dst->to) */
tolen = sockaddru_len(dst->to);
msg.msg_name = &dst->to.s;
Expand Down
6 changes: 3 additions & 3 deletions src/modules/sctp/sctp_server.h
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2008 iptelorg GmbH
*
* Permission to use, copy, modify, and distribute this software for any
Expand All @@ -13,8 +13,8 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/*
* sctp one to many
/*
* sctp one to many
*/

#ifndef _sctp_server_h
Expand Down
2 changes: 1 addition & 1 deletion src/modules/sctp/sctp_sockopts.h
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2009 iptelorg GmbH
*
* Permission to use, copy, modify, and distribute this software for any
Expand Down
2 changes: 1 addition & 1 deletion src/modules/sctp/sctp_stats.c
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2010 iptelorg GmbH
*
* Permission to use, copy, modify, and distribute this software for any
Expand Down
2 changes: 1 addition & 1 deletion src/modules/sctp/sctp_stats.h
@@ -1,4 +1,4 @@
/*
/*
* Copyright (C) 2009 iptelorg GmbH
*
* Permission to use, copy, modify, and distribute this software for any
Expand Down

0 comments on commit 865ed13

Please sign in to comment.