aboutsummaryrefslogtreecommitdiffstats
path: root/src/rs232.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rs232.c')
-rw-r--r--src/rs232.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rs232.c b/src/rs232.c
index 4ebc7b9..8ee658a 100644
--- a/src/rs232.c
+++ b/src/rs232.c
@@ -223,9 +223,7 @@ int osmo_rs232_open(struct osmo_rs232 *r)
return rc;
}
- bfd->when = OSMO_FD_READ;
- bfd->cb = serial_fd_cb;
- bfd->data = r;
+ osmo_fd_setup(bfd, bfd->fd, OSMO_FD_READ, serial_fd_cb, r, 0);
rc = osmo_fd_register(bfd);
if (rc < 0) {