aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-10-27 10:24:57 +0100
committerpespin <pespin@sysmocom.de>2020-10-29 11:34:17 +0000
commit16705a4db14f290cfee6afe23fbf6184ef8041e0 (patch)
tree2a0cee93b342c3cbe75b3261b68081dff4882736
parent4d1663594b442e3f6b6e9c89ab3e26948b8f786a (diff)
cosmetic: Fix ws between if keyword and parenthesis
-rw-r--r--src/csn1.c8
-rw-r--r--src/encoding.cpp2
-rw-r--r--src/gsm_rlcmac.c6
-rw-r--r--src/pcu_vty_functions.cpp4
-rw-r--r--src/pdch.cpp2
5 files changed, 11 insertions, 11 deletions
diff --git a/src/csn1.c b/src/csn1.c
index 5b603993..fa29e27e 100644
--- a/src/csn1.c
+++ b/src/csn1.c
@@ -170,7 +170,7 @@ csnStreamDecoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec *vector
LOGPC(DCSN1, LOGL_DEBUG, "%s = %u | ", pDescr->sz , (unsigned)*pui8);
/* end add the bit value to protocol tree */
}
- else if(pDescr->may_be_null)
+ else if (pDescr->may_be_null)
{
pui8 = pui8DATA(data, pDescr->offset);
*pui8 = 0;
@@ -228,7 +228,7 @@ csnStreamDecoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec *vector
remaining_bits_len -= no_of_bits;
bit_offset += no_of_bits;
}
- else if(pDescr->may_be_null)
+ else if (pDescr->may_be_null)
{
if (no_of_bits <= 8)
{
@@ -1502,7 +1502,7 @@ gint16 csnStreamEncoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec
LOGPC(DCSN1, LOGL_DEBUG, "%s = %u | ", pDescr->sz , (unsigned)*pui8);
/* end add the bit value to protocol tree */
}
- else if(pDescr->may_be_null)
+ else if (pDescr->may_be_null)
{
LOGPC(DCSN1, LOGL_DEBUG, "%s = NULL | ", pDescr->sz);
}
@@ -1555,7 +1555,7 @@ gint16 csnStreamEncoder(csnStream_t* ar, const CSN_DESCR* pDescr, struct bitvec
remaining_bits_len -= no_of_bits;
bit_offset += no_of_bits;
}
- else if(pDescr->may_be_null)
+ else if (pDescr->may_be_null)
{
LOGPC(DCSN1, LOGL_DEBUG, "%s = NULL | ", pDescr->sz);
}
diff --git a/src/encoding.cpp b/src/encoding.cpp
index ecfca512..c6ec2e82 100644
--- a/src/encoding.cpp
+++ b/src/encoding.cpp
@@ -853,7 +853,7 @@ void Encoding::encode_rbb(const char *show_rbb, uint8_t *rbb)
if (show_rbb[i] == 'R')
rbb_byte |= 1<< (7-(i%8));
- if((i%8) == 7) {
+ if ((i%8) == 7) {
rbb[i/8] = rbb_byte;
rbb_byte = 0;
}
diff --git a/src/gsm_rlcmac.c b/src/gsm_rlcmac.c
index 06c721ea..abb1e59c 100644
--- a/src/gsm_rlcmac.c
+++ b/src/gsm_rlcmac.c
@@ -6056,7 +6056,7 @@ void decode_gsm_rlcmac_uplink_data(struct bitvec *vector, RlcMacUplinkDataBlock_
LOGPC(DRLCMACDATA, LOGL_NOTICE, "E_1 = %u ", (unsigned)(data->E_1));
- if(data->E_1 == 0) // Extension octet follows immediately
+ if (data->E_1 == 0) // Extension octet follows immediately
{
// Octet 3 (optional)
i = 0;
@@ -6071,7 +6071,7 @@ void decode_gsm_rlcmac_uplink_data(struct bitvec *vector, RlcMacUplinkDataBlock_
i++;
} while((data->M[i-1] == 1)&&(data->E[i-1] == 0));
}
- if(data->TI == 1) // TLLI field is present
+ if (data->TI == 1) // TLLI field is present
{
data->TLLI = bitvec_read_field(vector, &readIndex, 32);
LOGPC(DRLCMACDATA, LOGL_NOTICE, "TLLI = %08x ", data->TLLI);
@@ -6132,7 +6132,7 @@ void encode_gsm_rlcmac_downlink_data(struct bitvec *vector, RlcMacDownlinkDataBl
LOGPC(DRLCMACDATA, LOGL_NOTICE, "E_1 = %u ", (unsigned)(data->E_1));
// Octet 3 (optional)
- if(data->E_1 == 0)
+ if (data->E_1 == 0)
{
i = 0;
do
diff --git a/src/pcu_vty_functions.cpp b/src/pcu_vty_functions.cpp
index 28a15595..416c006b 100644
--- a/src/pcu_vty_functions.cpp
+++ b/src/pcu_vty_functions.cpp
@@ -79,7 +79,7 @@ static void tbf_print_vty_info(struct vty *vty, gprs_rlcmac_tbf *tbf)
ul_tbf->window_size(), win->v_q(), win->v_r());
vty_out(vty, "%s", VTY_NEWLINE);
vty_out(vty, " TBF Statistics:%s", VTY_NEWLINE);
- if(GPRS == tbf->ms()->mode()) {
+ if (GPRS == tbf->ms()->mode()) {
vty_out_rate_ctr_group(vty, " ", ul_tbf->m_ul_gprs_ctrs);
} else {
vty_out_rate_ctr_group(vty, " ", ul_tbf->m_ul_egprs_ctrs);
@@ -92,7 +92,7 @@ static void tbf_print_vty_info(struct vty *vty, gprs_rlcmac_tbf *tbf)
win->window_stalled() ? " STALLED" : "");
vty_out(vty, "%s", VTY_NEWLINE);
vty_out_rate_ctr_group(vty, " ", tbf->m_ctrs);
- if(GPRS == tbf->ms()->mode()) {
+ if (GPRS == tbf->ms()->mode()) {
vty_out_rate_ctr_group(vty, " ", dl_tbf->m_dl_gprs_ctrs);
} else {
vty_out_rate_ctr_group(vty, " ", dl_tbf->m_dl_egprs_ctrs);
diff --git a/src/pdch.cpp b/src/pdch.cpp
index 26604bcc..c56776f2 100644
--- a/src/pdch.cpp
+++ b/src/pdch.cpp
@@ -704,7 +704,7 @@ int gprs_rlcmac_pdch::rcv_control_block(const uint8_t *data, uint8_t data_len,
else
bts()->send_gsmtap_meas(PCU_GSMTAP_C_UL_CTRL, true, trx_no(), ts_no, GSMTAP_CHANNEL_PACCH, fn, data, data_len, meas);
- if(rc < 0) {
+ if (rc < 0) {
LOGP(DRLCMACUL, LOGL_ERROR, "Dropping Uplink Control Block with invalid "
"content, decode failed: %d)\n", rc);
goto free_ret;