diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-26 10:51:00 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2012-12-26 10:51:00 +0100 |
commit | af723a4ed4c0232047590896935fb0b8da7c78a8 (patch) | |
tree | 9916965d3f807d80650f960a67c9f6bcee53a909 /tests/lapd/lapd_test.c | |
parent | e523392c2c091f53c18edf2086d6966eec38561f (diff) |
lapd: Fix compiler warnings in the lapd code
lapd_test.c: In function ‘ms_to_bts_l1_cb’:
lapd_test.c:192:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
lapd_test.c:199:1: warning: no return statement in function returning non-void [-Wreturn-type]
lapd_test.c: In function ‘main’:
lapd_test.c:355:2: warning: implicit declaration of function ‘osmo_init_logging’ [-Wimplicit-function-declaration]
Diffstat (limited to 'tests/lapd/lapd_test.c')
-rw-r--r-- | tests/lapd/lapd_test.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lapd/lapd_test.c b/tests/lapd/lapd_test.c index 2dabbc6d..acd3cadb 100644 --- a/tests/lapd/lapd_test.c +++ b/tests/lapd/lapd_test.c @@ -19,6 +19,7 @@ * */ +#include <osmocom/core/application.h> #include <osmocom/core/logging.h> #include <osmocom/gsm/lapdm.h> #include <osmocom/gsm/rsl.h> @@ -196,6 +197,7 @@ static int ms_to_bts_l1_cb(struct osmo_prim_hdr *oph, void *_ctx) /* i stuff it into the LAPDm channel of the BTS */ rc = send(oph->msg, state->bts); msgb_free(oph->msg); + return rc; } static int ms_to_bts_tx_cb(struct msgb *msg, struct lapdm_entity *le, void *_ctx) |