From 5b6416a729b46aab8ac7ea25a7ec91f3afeaf4fc Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 16 Sep 2013 14:13:25 +0200 Subject: bssgp: Address various compiler warnings in the bssgp code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gb/bssgp_fc_test.c: In function ‘fc_out_cb’: gb/bssgp_fc_test.c:46:1: warning: no return statement in function returning non-void [-Wreturn-type] gb/bssgp_fc_test.c: In function ‘fc_in’: gb/bssgp_fc_test.c:56:1: warning: no return statement in function returning non-void [-Wreturn-type] gb/bssgp_fc_test.c: In function ‘test_fc’: gb/bssgp_fc_test.c:79:3: warning: implicit declaration of function ‘usleep’ [-Wimplicit-function-declaration] --- tests/gb/bssgp_fc_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/gb/bssgp_fc_test.c b/tests/gb/bssgp_fc_test.c index f74be300..64e4b4eb 100644 --- a/tests/gb/bssgp_fc_test.c +++ b/tests/gb/bssgp_fc_test.c @@ -7,6 +7,7 @@ #include #include #include +#include #include #include @@ -43,6 +44,7 @@ static int fc_out_cb(struct bssgp_flow_control *fc, struct msgb *msg, csecs = round_decisec(csecs); printf("%u: FC OUT Nr %lu\n", csecs, (unsigned long) msg); + return 0; } static int fc_in(struct bssgp_flow_control *fc, unsigned int pdu_len) @@ -53,6 +55,7 @@ static int fc_in(struct bssgp_flow_control *fc, unsigned int pdu_len) printf("%u: FC IN Nr %lu\n", csecs, in_ctr); bssgp_fc_in(fc, (struct msgb *) in_ctr, pdu_len, NULL); in_ctr++; + return 0; } -- cgit v1.2.3