aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2023-07-18 14:03:27 +0200
committerHarald Welte <laforge@osmocom.org>2023-07-18 14:04:14 +0200
commitf07d38a6eb3d6cd999221a0b16a45fa7149c33b5 (patch)
treeafb7260ead539ea88c2f14cf46597363093fd946 /src
parent27cfff6ad01e9af28104a20a5b2235551c251cad (diff)
e1d-ts-pipe: Assert that osmo_fd_register() succeeds
Fixes: CID#307497: Unchecked return value (CHECKED_RETURN) Change-Id: Ie2abd580e37d7d58c507d12105ec2130fb533ed9
Diffstat (limited to 'src')
-rw-r--r--src/e1d-ts-pipe.c2
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);