diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-05-09 19:21:15 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2020-05-09 19:21:15 +0200 |
commit | b2ebc59f30b67df53635f27b444e510b1c758e0c (patch) | |
tree | e9a58925ccebf379cd8595886d83b45d3bfdf9b5 /src/gtphub/gtphub.c | |
parent | 9d550cb36972173fadaaa1e1c8f3d4428106079e (diff) |
Use OSMO_FD_* instead of deprecated BSC_FD_*
New define is available since libosmocore 1.1.0, and we already require
1.2.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: Iaebd049e383b02204a12f39cc6c932a53d25fd72
Diffstat (limited to 'src/gtphub/gtphub.c')
-rw-r--r-- | src/gtphub/gtphub.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gtphub/gtphub.c b/src/gtphub/gtphub.c index ca5857b39..7b355bf9c 100644 --- a/src/gtphub/gtphub.c +++ b/src/gtphub/gtphub.c @@ -853,7 +853,7 @@ static int gtphub_sock_init(struct osmo_fd *ofd, return -1; } - ofd->when = BSC_FD_READ; + ofd->when = OSMO_FD_READ; ofd->cb = cb; ofd->data = data; ofd->priv_nr = ofd_id; @@ -1948,7 +1948,7 @@ static int from_sgsns_read_cb(struct osmo_fd *from_sgsns_ofd, unsigned int what) LOG(LOGL_DEBUG, "=== reading from SGSN (%s)\n", gtphub_plane_idx_names[plane_idx]); - if (!(what & BSC_FD_READ)) + if (!(what & OSMO_FD_READ)) return 0; struct gtphub *hub = from_sgsns_ofd->data; @@ -1979,7 +1979,7 @@ static int from_ggsns_read_cb(struct osmo_fd *from_ggsns_ofd, unsigned int what) OSMO_ASSERT(plane_idx < GTPH_PLANE_N); LOG(LOGL_DEBUG, "=== reading from GGSN (%s)\n", gtphub_plane_idx_names[plane_idx]); - if (!(what & BSC_FD_READ)) + if (!(what & OSMO_FD_READ)) return 0; struct gtphub *hub = from_ggsns_ofd->data; |