From 606e0dcdab66893f6fc3ec86b97d54ea80b90e38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Thu, 21 Jul 2022 00:41:20 +0200 Subject: [PATCH] doc: tutorial3: do not return anything from `roundtrip()` The return value was constant 0 and it was not used by the caller. --- doc/tutorial3.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/tutorial3.c b/doc/tutorial3.c index 899488883..c2ceec9d8 100644 --- a/doc/tutorial3.c +++ b/doc/tutorial3.c @@ -20,7 +20,7 @@ static void on_core_done(void *data, uint32_t id, int seq) pw_main_loop_quit(d->loop); } -static int roundtrip(struct pw_core *core, struct pw_main_loop *loop) +static void roundtrip(struct pw_core *core, struct pw_main_loop *loop) { static const struct pw_core_events core_events = { PW_VERSION_CORE_EVENTS, @@ -38,7 +38,6 @@ static int roundtrip(struct pw_core *core, struct pw_main_loop *loop) pw_main_loop_run(loop); spa_hook_remove(&core_listener); - return 0; } /* [roundtrip] */