diff options
author | Max Kellermann <max@duempel.org> | 2012-06-12 21:09:40 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-06-12 21:15:46 +0200 |
commit | d2d9b45a8189b7771e1b7dfbe7d5a550fcf400b8 (patch) | |
tree | 6e1653ab8cd563dd2e6c326d99fecda34d202fe6 /src/cmdline.c | |
parent | 9ebbdb9b0b288164ce956ba34bc0c38f94868110 (diff) | |
download | mpd-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.c | 3 |
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); |