diff options
author | Harald Welte <laforge@osmocom.org> | 2020-10-19 12:27:36 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-10-19 12:27:36 +0200 |
commit | c5989fe180465fe8839dd822424fd1c6765512ea (patch) | |
tree | 863deb5fa1a3262884d2d74fcc1f678b6ed9088d /Transceiver52M/device/ipc/ipc_sock.c | |
parent | 08970c562fe688812137ec6f3960a4311d92254b (diff) |
Use osmo_fd_setup() wherever applicable
Change-Id: Ie093dea96ec8990368695c0c5824e0fe44fb8540
Diffstat (limited to 'Transceiver52M/device/ipc/ipc_sock.c')
-rw-r--r-- | Transceiver52M/device/ipc/ipc_sock.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Transceiver52M/device/ipc/ipc_sock.c b/Transceiver52M/device/ipc/ipc_sock.c index 26865bf..b014fac 100644 --- a/Transceiver52M/device/ipc/ipc_sock.c +++ b/Transceiver52M/device/ipc/ipc_sock.c @@ -249,10 +249,7 @@ int ipc_sock_accept(struct osmo_fd *bfd, unsigned int flags) return 0; } - conn_bfd->fd = rc; - conn_bfd->when = OSMO_FD_READ; - conn_bfd->cb = ipc_sock_cb; - conn_bfd->data = state; + osmo_fd_setup(conn_bfd, rc, OSMO_FD_READ, ipc_sock_cb, state, 0); if (osmo_fd_register(conn_bfd) != 0) { LOGP(DDEV, LOGL_ERROR, |