From af723a4ed4c0232047590896935fb0b8da7c78a8 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Wed, 26 Dec 2012 10:51:00 +0100 Subject: lapd: Fix compiler warnings in the lapd code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] --- tests/lapd/lapd_test.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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 #include #include #include @@ -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) -- cgit v1.2.3