mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-11-02 21:13:44 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user