aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-09-16 14:13:25 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-09-16 14:13:25 +0200
commit5b6416a729b46aab8ac7ea25a7ec91f3afeaf4fc (patch)
tree07d1fd466416b6bed2c1cf541aa71ef0f7b4a0f0
parent1c3f088c1fee825946c4e9607d7f39a18775164c (diff)
bssgp: Address various compiler warnings in the bssgp code
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]
-rw-r--r--tests/gb/bssgp_fc_test.c3
1 files changed, 3 insertions, 0 deletions
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 <stdint.h>
#include <string.h>
#include <getopt.h>
+#include <unistd.h>
#include <osmocom/core/application.h>
#include <osmocom/core/utils.h>
@@ -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;
}