aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Maier <pmaier@sysmocom.de>2022-09-26 13:01:30 +0200
committerPhilipp Maier <pmaier@sysmocom.de>2022-09-26 13:02:34 +0200
commitae6ae89a199556293f4cfca26efbfadd828e3252 (patch)
tree871a0d08df2048867c5cb9931c5bca4b98e560e1
parent8cfb8bcc6c4c612f612cccf3f8afc4dbf96a5c93 (diff)
pcu_sock: fix sourcecode formatting
-rw-r--r--include/osmo-bts/pcu_if.h2
-rw-r--r--src/common/pcu_sock.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/osmo-bts/pcu_if.h b/include/osmo-bts/pcu_if.h
index bc30f341..6cdc6821 100644
--- a/include/osmo-bts/pcu_if.h
+++ b/include/osmo-bts/pcu_if.h
@@ -5,7 +5,7 @@
extern int pcu_direct;
-#define PCUIF_HDR_SIZE ( sizeof(struct gsm_pcu_if) - sizeof(((struct gsm_pcu_if *)0)->u) )
+#define PCUIF_HDR_SIZE (sizeof(struct gsm_pcu_if) - sizeof(((struct gsm_pcu_if *)0)->u))
int pcu_tx_info_ind(void);
int pcu_tx_si(const struct gsm_bts *bts, enum osmo_sysinfo_type si_type, bool enable);
diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c
index 980ed139..b7ec0484 100644
--- a/src/common/pcu_sock.c
+++ b/src/common/pcu_sock.c
@@ -899,7 +899,7 @@ static int pcu_rx_act_req(struct gsm_bts *bts,
"size is %zu, discarding\n", prim_len, #prim_msg, _len); \
return -EINVAL; \
} \
- } while(0);
+ } while (0)
static int pcu_rx(struct gsm_network *net, uint8_t msg_type,
struct gsm_pcu_if *pcu_prim, size_t prim_len)
{