aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-10-18 22:32:24 +0200
committerHarald Welte <laforge@osmocom.org>2020-10-18 22:32:24 +0200
commita124c1714e4d61b5507fec40ea4b8525e379a8ba (patch)
treeef43d35276bd343ea8aa926500e39a8507e5491e
parent3907085239d997fb9054b6b597a187f8ba8735f6 (diff)
migrate from BSC_FD_* to OSMO_FD_*
-rw-r--r--host/src/usb2udp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/host/src/usb2udp.c b/host/src/usb2udp.c
index 57cee74..2c07a3a 100644
--- a/host/src/usb2udp.c
+++ b/host/src/usb2udp.c
@@ -88,7 +88,7 @@ static void usb_in_xfer_cb(struct libusb_transfer *xfer)
libusb_submit_transfer(xfer);
} else if (xfer->endpoint == g_buf_out.ep) {
/* re-enable reading from the UDP side */
- g_udp_ofd.when |= BSC_FD_READ;
+ g_udp_ofd.when |= OSMO_FD_READ;
}
break;
default:
@@ -131,9 +131,9 @@ static void libusb_fd_added_cb(int fd, short events, void *user_data)
ofd->fd = fd;
ofd->cb = &ofd_libusb_cb;
if (events & POLLIN)
- ofd->when |= BSC_FD_READ;
+ ofd->when |= OSMO_FD_READ;
if (events & POLLOUT)
- ofd->when |= BSC_FD_WRITE;
+ ofd->when |= OSMO_FD_WRITE;
osmo_fd_register(ofd);
}
@@ -171,7 +171,7 @@ static int ofd_udp_cb(struct osmo_fd *ofd, unsigned int what)
g_buf_out.xfer->length = rc;
/* disable further READ interest for the UDP socket */
- ofd->when &= ~BSC_FD_READ;
+ ofd->when &= ~OSMO_FD_READ;
/* submit the URB on the OUT end point */
libusb_submit_transfer(g_buf_out.xfer);