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.
This commit is contained in:
Holger Hans Peter Freyther 2016-01-22 23:32:36 +01:00
parent 22a7142129
commit 91e0e1b038
1 changed files with 2 additions and 2 deletions

View File

@ -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);