diff options
author | Max Kellermann <max@duempel.org> | 2012-06-12 22:21:48 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-06-12 22:21:48 +0200 |
commit | e60141b4dd726d78f3c33bb02e53d1c0f9e670a5 (patch) | |
tree | 31081beb348f8d701223158c4f5e9e37126d053a /src/input_init.c | |
parent | 5b217420954ad1962b822faa1e2881570f803992 (diff) | |
download | mpd-e60141b4dd726d78f3c33bb02e53d1c0f9e670a5.tar.gz mpd-e60141b4dd726d78f3c33bb02e53d1c0f9e670a5.tar.xz mpd-e60141b4dd726d78f3c33bb02e53d1c0f9e670a5.zip |
input_registry: add _for_each() macros
Diffstat (limited to '')
-rw-r--r-- | src/input_init.c | 7 |
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(); } |