summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-01-22 23:32:36 +0100
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2016-01-22 23:32:36 +0100
commit91e0e1b038fd9883cf6493a795b30398238d9c37 (patch)
tree33937bcf2ce832a4c68eca2793d7587390c64a2e
parent22a71421299e66077362617878deefb5c9f82690 (diff)
gtphub: Fix compilation using gcc5
The semantic of inline has changed and we need to make it static to not end up with undefined references.
-rw-r--r--openbsc/src/gprs/gtphub.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c
index f26a56ace..fcb071529 100644
--- a/openbsc/src/gprs/gtphub.c
+++ b/openbsc/src/gprs/gtphub.c
@@ -950,14 +950,14 @@ static int gtphub_read(const struct osmo_fd *from,
return received;
}
-inline void gtphub_port_ref_count_inc(struct gtphub_peer_port *pp)
+static inline void gtphub_port_ref_count_inc(struct gtphub_peer_port *pp)
{
OSMO_ASSERT(pp);
OSMO_ASSERT(pp->ref_count < UINT_MAX);
pp->ref_count++;
}
-inline void gtphub_port_ref_count_dec(struct gtphub_peer_port *pp)
+static inline void gtphub_port_ref_count_dec(struct gtphub_peer_port *pp)
{
OSMO_ASSERT(pp);
OSMO_ASSERT(pp->ref_count > 0);