aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-12-02 23:06:37 +0100
committerHarald Welte <laforge@osmocom.org>2020-12-02 23:06:37 +0100
commit55253716d24f079662e749240f6ff6ebd99cecb6 (patch)
tree625ce662402133b64634ff940a688cc2dcb2283b
parent1239cf457e437a6868cdc140a9f65d3b1aeb9ac5 (diff)
gbproxy: Cosmetics: use longer lines
-rw-r--r--src/gbproxy/gb_proxy.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/gbproxy/gb_proxy.c b/src/gbproxy/gb_proxy.c
index 2fd276d10..d8b828c68 100644
--- a/src/gbproxy/gb_proxy.c
+++ b/src/gbproxy/gb_proxy.c
@@ -1025,9 +1025,9 @@ static int gbprox_rx_bvc_reset_from_bss(struct gbproxy_config *cfg, struct msgb
/* If we receive a BVC reset on the signalling endpoint, we
* don't want the SGSN to reset, as the signalling endpoint
* is common for all point-to-point BVCs (and thus all BTS) */
- struct gbproxy_nse *nse;
+
/* Ensure the NSE peer is there and clear all PtP BVCs */
- nse = gbproxy_nse_by_nsei_or_new(cfg, nsei);
+ struct gbproxy_nse *nse = gbproxy_nse_by_nsei_or_new(cfg, nsei);
if (!nse) {
LOGP(DGPRS, LOGL_ERROR, "Could not create NSE(%05u)\n", nsei);
bssgp_tx_status(BSSGP_CAUSE_PROTO_ERR_UNSPEC, 0, msg);
@@ -1037,8 +1037,7 @@ static int gbprox_rx_bvc_reset_from_bss(struct gbproxy_config *cfg, struct msgb
gbproxy_cleanup_peers(cfg, nsei, 0);
/* FIXME: only do this if SGSN is alive! */
- LOGPNSE(nse, LOGL_INFO, "Tx fake "
- "BVC RESET ACK of BVCI=0\n");
+ LOGPNSE(nse, LOGL_INFO, "Tx fake BVC RESET ACK of BVCI=0\n");
bssgp_tx_simple_bvci(BSSGP_PDUT_BVC_RESET_ACK, nsei, 0, 0);
return 0;
} else {
@@ -1080,12 +1079,9 @@ static int gbprox_rx_bvc_reset_from_bss(struct gbproxy_config *cfg, struct msgb
* PDU, this means we can extend our local
* state information about this particular cell
* */
- memcpy(from_peer->ra,
- TLVP_VAL(tp, BSSGP_IE_CELL_ID),
- sizeof(from_peer->ra));
+ memcpy(from_peer->ra, TLVP_VAL(tp, BSSGP_IE_CELL_ID), sizeof(from_peer->ra));
gsm48_parse_ra(&raid, from_peer->ra);
- LOGPBVC(from_peer, LOGL_INFO, "Cell ID %s\n",
- osmo_rai_name(&raid));
+ LOGPBVC(from_peer, LOGL_INFO, "Cell ID %s\n", osmo_rai_name(&raid));
}
if (cfg->route_to_sgsn2)
*copy_to_sgsn2 = 1;