From 8e9f40a912a1c1157c84ff99449e5626963a0c3d Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Sat, 9 May 2020 19:17:12 +0200 Subject: Use OSMO_FD_* instead of deprecated BSC_FD_* New define is available since libosmocore 1.1.0, and we already require 1.3.0, so no need to update dependenices. Let's change it to avoid people re-using old BSC_FD_* symbols when copy-pasting somewhere else. Change-Id: Ia5a656567d212fa265aef1375d714d0c5fee5dd6 --- src/utils/meas_json.c | 2 +- src/utils/meas_udp2db.c | 2 +- src/utils/meas_vis.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/utils') diff --git a/src/utils/meas_json.c b/src/utils/meas_json.c index 6aa531a7f..0fd99c0d0 100644 --- a/src/utils/meas_json.c +++ b/src/utils/meas_json.c @@ -158,7 +158,7 @@ static int udp_fd_cb(struct osmo_fd *ofd, unsigned int what) { int rc; - if (what & BSC_FD_READ) { + if (what & OSMO_FD_READ) { struct msgb *msg = msgb_alloc(1024, "UDP Rx"); rc = read(ofd->fd, msgb_data(msg), msgb_tailroom(msg)); diff --git a/src/utils/meas_udp2db.c b/src/utils/meas_udp2db.c index 34f8385e8..07023c323 100644 --- a/src/utils/meas_udp2db.c +++ b/src/utils/meas_udp2db.c @@ -71,7 +71,7 @@ static int udp_fd_cb(struct osmo_fd *ofd, unsigned int what) { int rc; - if (what & BSC_FD_READ) { + if (what & OSMO_FD_READ) { struct msgb *msg = msgb_alloc(1024, "UDP Rx"); rc = read(ofd->fd, msgb_data(msg), msgb_tailroom(msg)); diff --git a/src/utils/meas_vis.c b/src/utils/meas_vis.c index 01be98611..73ccfc4aa 100644 --- a/src/utils/meas_vis.c +++ b/src/utils/meas_vis.c @@ -125,7 +125,7 @@ static int udp_fd_cb(struct osmo_fd *ofd, unsigned int what) { int rc; - if (what & BSC_FD_READ) { + if (what & OSMO_FD_READ) { struct msgb *msg = msgb_alloc(1024, "UDP Rx"); rc = read(ofd->fd, msgb_data(msg), msgb_tailroom(msg)); -- cgit v1.2.3