aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2020-10-19 12:32:38 +0200
committerlaforge <laforge@osmocom.org>2020-11-11 20:15:09 +0000
commite1ba4239b47d96a98401977b6b2c26375d69bea6 (patch)
treedea3179aa375fe146a03bed1116473a6eaafca1d
parent638cddd8f18e3f362a1bbb18ccc986c174a015a6 (diff)
Use osmo_fd_*_{disable,enable}
-rw-r--r--src/gprs/sgsn_ares.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gprs/sgsn_ares.c b/src/gprs/sgsn_ares.c
index 38e31e13..87314f11 100644
--- a/src/gprs/sgsn_ares.c
+++ b/src/gprs/sgsn_ares.c
@@ -120,14 +120,14 @@ static void setup_ares_osmo_fd(void *data, int fd, int read, int write)
update_fd:
if (read)
- ufd->fd.when |= OSMO_FD_READ;
+ osmo_fd_read_enable(&ufd->fd);
else
- ufd->fd.when &= ~OSMO_FD_READ;
+ osmo_fd_read_disable(&ufd->fd);
if (write)
- ufd->fd.when |= OSMO_FD_WRITE;
+ osmo_fd_write_enable(&ufd->fd);
else
- ufd->fd.when &= ~OSMO_FD_WRITE;
+ osmo_fd_write_disable(&ufd->fd);
osmo_ares_reschedule(sgsn);
}