aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/input_init.c')
-rw-r--r--src/input_init.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/input_init.c b/src/input_init.c
index cf5affb4e..e1698b64c 100644
--- a/src/input_init.c
+++ b/src/input_init.c
@@ -99,8 +99,7 @@ input_stream_global_init(GError **error_r)
void input_stream_global_finish(void)
{
- for (unsigned i = 0; input_plugins[i] != NULL; ++i)
- if (input_plugins_enabled[i] &&
- input_plugins[i]->finish != NULL)
- input_plugins[i]->finish();
+ input_plugins_for_each_enabled(plugin)
+ if (plugin->finish != NULL)
+ plugin->finish();
}