aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bsc/meas_feed.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bsc/meas_feed.c')
-rw-r--r--src/osmo-bsc/meas_feed.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osmo-bsc/meas_feed.c b/src/osmo-bsc/meas_feed.c
index 889f6efc3..afd96e18b 100644
--- a/src/osmo-bsc/meas_feed.c
+++ b/src/osmo-bsc/meas_feed.c
@@ -20,6 +20,7 @@
#include <osmocom/bsc/vty.h>
#include <osmocom/bsc/debug.h>
#include <osmocom/bsc/bts.h>
+#include <osmocom/bsc/lchan.h>
struct meas_feed_state {
struct osmo_wqueue wqueue;
@@ -119,7 +120,7 @@ static int feed_read_cb(struct osmo_fd *ofd)
char buf[256];
rc = read(ofd->fd, buf, sizeof(buf));
- ofd->fd &= ~OSMO_FD_READ;
+ osmo_fd_read_disable(ofd);
return rc;
}
@@ -159,7 +160,7 @@ int meas_feed_cfg_set(const char *dst_host, uint16_t dst_port)
if (rc < 0)
return rc;
- g_mfs.wqueue.bfd.when &= ~OSMO_FD_READ;
+ osmo_fd_read_disable(&g_mfs.wqueue.bfd);
if (g_mfs.dst_host)
talloc_free(g_mfs.dst_host);