diff options
author | Harald Welte <laforge@osmocom.org> | 2020-10-18 23:34:46 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-10-18 23:34:46 +0200 |
commit | de31aa3af7304173809862321146595a08177981 (patch) | |
tree | 2aca769cc80db7dd4ce89361f542cb67a6dd657b /src/host/virt_phy/src/shared/osmo_mcast_sock.c | |
parent | 508d8523c042fc766d2eda61ac47b253660e9c5a (diff) |
Use osmo_fd_setup() whenever applicable.
Change-Id: If9b636c295fc6b5349a54c70662f09efa616ee63
Diffstat (limited to 'src/host/virt_phy/src/shared/osmo_mcast_sock.c')
-rw-r--r-- | src/host/virt_phy/src/shared/osmo_mcast_sock.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/host/virt_phy/src/shared/osmo_mcast_sock.c b/src/host/virt_phy/src/shared/osmo_mcast_sock.c index b111a654..d0c5b6df 100644 --- a/src/host/virt_phy/src/shared/osmo_mcast_sock.c +++ b/src/host/virt_phy/src/shared/osmo_mcast_sock.c @@ -43,9 +43,7 @@ int mcast_client_sock_setup(struct osmo_fd *ofd, const char *mcast_group, uint16 int rc; unsigned int flags = OSMO_SOCK_F_BIND | OSMO_SOCK_F_NO_MCAST_ALL | OSMO_SOCK_F_UDP_REUSEADDR; - ofd->cb = fd_rx_cb; - ofd->when = OSMO_FD_READ; - ofd->data = osmo_fd_data; + osmo_fd_setup(ofd, -1, OSMO_FD_READ, fd_rx_cb, osmo_fd_data, 0); /* Create mcast client socket */ rc = osmo_sock_init_ofd(ofd, AF_INET, SOCK_DGRAM, IPPROTO_UDP, |