aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-05-09 19:17:12 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2020-07-15 18:38:11 +0200
commit8e9f40a912a1c1157c84ff99449e5626963a0c3d (patch)
tree6777fb2d1c9cdbf92ae819fc93399f815d4795a9 /src/utils
parent56c7ecda0e391d77fc2ffe90adafbf864365c60c (diff)
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
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/meas_json.c2
-rw-r--r--src/utils/meas_udp2db.c2
-rw-r--r--src/utils/meas_vis.c2
3 files changed, 3 insertions, 3 deletions
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));