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]
diff --git a/tests/gb/bssgp_fc_test.c b/tests/gb/bssgp_fc_test.c
index f74be30..64e4b4e 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 @@
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 @@
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;
}