aboutsummaryrefslogtreecommitdiffstats
path: root/src/gtphub/gtphub.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtphub/gtphub.c')
-rw-r--r--src/gtphub/gtphub.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/gtphub/gtphub.c b/src/gtphub/gtphub.c
index 699499f3e..c24652e07 100644
--- a/src/gtphub/gtphub.c
+++ b/src/gtphub/gtphub.c
@@ -853,10 +853,7 @@ static int gtphub_sock_init(struct osmo_fd *ofd,
return -1;
}
- ofd->when = OSMO_FD_READ;
- ofd->cb = cb;
- ofd->data = data;
- ofd->priv_nr = ofd_id;
+ osmo_fd_setup(ofd, -1, OSMO_FD_READ, cb, data, ofd_id);
int rc;
rc = osmo_sock_init_ofd(ofd,