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 1438c3e52..de418845c 100644
--- a/src/input_init.c
+++ b/src/input_init.c
@@ -93,8 +93,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();
}