diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-04-24 22:57:59 +0200 |
---|---|---|
committer | laforge <laforge@osmocom.org> | 2020-04-25 13:51:16 +0000 |
commit | 5a618186a1ac5b487d00bd69b27c4a0c866e4ba1 (patch) | |
tree | a4bf4b4c24ab120b915732cd5219e4c42d61135e | |
parent | 321d69f4fd8b50a453a017d4e1825ba54a2fd467 (diff) |
lc15: Fix mismatching signature in callback provided
Fixes following compilation warning:
/osmo-bts/src/osmo-bts-litecell15/l1_if.c: In function ‘dsp_alive_timer_cb’:
/osmo-bts/src/osmo-bts-litecell15/l1_if.c:1643:33: warning: passing argument 3 of ‘l1if_req_compl’ from incompatible pointer type [-Wincompatible-pointer-types]
1643 | rc = l1if_req_compl(fl1h, msg, dsp_alive_compl_cb, NULL);
| ^~~~~~~~~~~~~~~~~~
| |
| void (*)(struct gsm_bts_trx *, struct msgb *, void *)
/osmo-bts/src/osmo-bts-litecell15/l1_if.c:220:21: note: expected ‘int (*)(struct gsm_bts_trx *, struct msgb *, void *)’ but argument is of type ‘void (*)(struct gsm_bts_trx *, struct msgb *, void *)’
220 | l1if_compl_cb *cb, void *data)
| ~~~~~~~~~~~~~~~^~
Change-Id: Id80d5a52cbccce54456205dec230a0b546b8b310
-rw-r--r-- | src/osmo-bts-litecell15/l1_if.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmo-bts-litecell15/l1_if.c b/src/osmo-bts-litecell15/l1_if.c index 0e334d25..23f7c3d5 100644 --- a/src/osmo-bts-litecell15/l1_if.c +++ b/src/osmo-bts-litecell15/l1_if.c @@ -1605,7 +1605,7 @@ int l1if_close(struct lc15l1_hdl *fl1h) } #if LITECELL15_API_VERSION >= LITECELL15_API(2,1,7) -static void dsp_alive_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp, void *data) +static int dsp_alive_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp, void *data) { Litecell15_Prim_t *sysp = msgb_sysprim(resp); Litecell15_IsAliveCnf_t *sac = &sysp->u.isAliveCnf; @@ -1616,6 +1616,7 @@ static void dsp_alive_compl_cb(struct gsm_bts_trx *trx, struct msgb *resp, void get_value_string(lc15bts_sysprim_names, sysp->id), sac->status, trx->nr); msgb_free(resp); + return 0; } static void dsp_alive_timer_cb(void *data) |