diff options
author | Harald Welte <laforge@osmocom.org> | 2023-07-18 14:03:27 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2023-07-18 14:04:14 +0200 |
commit | f07d38a6eb3d6cd999221a0b16a45fa7149c33b5 (patch) | |
tree | afb7260ead539ea88c2f14cf46597363093fd946 | |
parent | 27cfff6ad01e9af28104a20a5b2235551c251cad (diff) |
e1d-ts-pipe: Assert that osmo_fd_register() succeeds
Fixes: CID#307497: Unchecked return value (CHECKED_RETURN)
Change-Id: Ie2abd580e37d7d58c507d12105ec2130fb533ed9
-rw-r--r-- | src/e1d-ts-pipe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/e1d-ts-pipe.c b/src/e1d-ts-pipe.c index 99b7c55..45cafb8 100644 --- a/src/e1d-ts-pipe.c +++ b/src/e1d-ts-pipe.c @@ -219,7 +219,7 @@ int main(int argc, char **argv) exit(2); osmo_fd_setup(&ts_ofd, tsfd, OSMO_FD_READ|OSMO_FD_WRITE, ts_fd_cb, NULL, 0); - osmo_fd_register(&ts_ofd); + OSMO_ASSERT(osmo_fd_register(&ts_ofd) == 0); set_nonblock(infd); set_nonblock(outfd); |