aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmdline.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-06-12 21:09:40 +0200
committerMax Kellermann <max@duempel.org>2012-06-12 21:15:46 +0200
commitd2d9b45a8189b7771e1b7dfbe7d5a550fcf400b8 (patch)
tree6e1653ab8cd563dd2e6c326d99fecda34d202fe6 /src/cmdline.c
parent9ebbdb9b0b288164ce956ba34bc0c38f94868110 (diff)
downloadmpd-d2d9b45a8189b7771e1b7dfbe7d5a550fcf400b8.tar.gz
mpd-d2d9b45a8189b7771e1b7dfbe7d5a550fcf400b8.tar.xz
mpd-d2d9b45a8189b7771e1b7dfbe7d5a550fcf400b8.zip
decoder_list: add _for_each() macros
Diffstat (limited to 'src/cmdline.c')
-rw-r--r--src/cmdline.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cmdline.c b/src/cmdline.c
index 4b44892f3..a7e1d42fa 100644
--- a/src/cmdline.c
+++ b/src/cmdline.c
@@ -58,8 +58,7 @@ cmdline_quark(void)
static void
print_all_decoders(FILE *fp)
{
- for (unsigned i = 0; decoder_plugins[i] != NULL; ++i) {
- const struct decoder_plugin *plugin = decoder_plugins[i];
+ decoder_plugins_for_each(plugin) {
const char *const*suffixes;
fprintf(fp, "[%s]", plugin->name);