From ae6ae89a199556293f4cfca26efbfadd828e3252 Mon Sep 17 00:00:00 2001 From: Philipp Maier Date: Mon, 26 Sep 2022 13:01:30 +0200 Subject: [PATCH] pcu_sock: fix sourcecode formatting Change-Id: Ib88173363fc11ad44a5bdbcd85ea8ca075db7997 --- include/osmo-bts/pcu_if.h | 2 +- src/common/pcu_sock.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osmo-bts/pcu_if.h b/include/osmo-bts/pcu_if.h index bc30f3411..6cdc68212 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 980ed1396..b7ec0484a 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) {