diff options
author | Eric <ewild@sysmocom.de> | 2020-04-19 23:51:57 +0200 |
---|---|---|
committer | Eric <ewild@sysmocom.de> | 2020-04-19 23:51:57 +0200 |
commit | a1d2b1f8229a7953034ce5bf81682e55eb283617 (patch) | |
tree | 1b76ea0263ef65a0051770d741c0c7985bba0f86 /Transceiver52M/device | |
parent | 0f839a1a49f049df844db57960d6d330fc390f3b (diff) |
silence warnings
Change-Id: I01b2dce8e04cdc21872e5bbc3eec7e0a5e3d1b0b
Diffstat (limited to 'Transceiver52M/device')
-rw-r--r-- | Transceiver52M/device/ipc/ipc-driver-test.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Transceiver52M/device/ipc/ipc-driver-test.c b/Transceiver52M/device/ipc/ipc-driver-test.c index ec04446..a342603 100644 --- a/Transceiver52M/device/ipc/ipc-driver-test.c +++ b/Transceiver52M/device/ipc/ipc-driver-test.c @@ -64,9 +64,9 @@ enum { static const struct log_info_cat default_categories[] = { [DMAIN] = { .name = "DMAIN", + .color = NULL, .description = "Main generic category", - .color = NULL, - .enabled = 1, .loglevel = LOGL_DEBUG, + .loglevel = LOGL_DEBUG,.enabled = 1, }, }; @@ -147,7 +147,7 @@ static int ipc_tx_info_cnf() struct msgb *msg; struct ipc_sk_if *ipc_prim; struct ipc_sk_if_info_chan *chan_info; - int i; + unsigned int i; msg = ipc_msgb_alloc(IPC_IF_MSG_INFO_CNF); if (!msg) @@ -179,7 +179,7 @@ static int ipc_tx_open_cnf(int rc, uint32_t num_chans) struct msgb *msg; struct ipc_sk_if *ipc_prim; struct ipc_sk_if_open_cnf_chan *chan_info; - int i; + unsigned int i; msg = ipc_msgb_alloc(IPC_IF_MSG_OPEN_CNF); if (!msg) @@ -318,7 +318,7 @@ static int ipc_sock_read(struct osmo_fd *bfd) goto close; } - if (rc < sizeof(*ipc_prim)) { + if (rc < (int)sizeof(*ipc_prim)) { LOGP(DMAIN, LOGL_ERROR, "Received %d bytes on Unix Socket, but primitive size " "is %zu, discarding\n", rc, sizeof(*ipc_prim)); msgb_free(msg); @@ -341,7 +341,7 @@ close: static int ipc_sock_write(struct osmo_fd *bfd) { - struct ipc_sock_state *state = bfd->data; + struct ipc_sock_state *state = (struct ipc_sock_state *)bfd->data; int rc; while (!llist_empty(&state->upqueue)) { |