aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_init.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-06-12 20:29:47 +0200
committerMax Kellermann <max@duempel.org>2012-06-12 20:31:32 +0200
commit992c2fa2d4f0b3fae9bd26144c14e6a4e0ce9a75 (patch)
tree5717c974ffab5091808f406c05df3af77abd3dc8 /src/output_init.c
parented915fed9253c23755fda6cc48ece61fa8f5d3b0 (diff)
downloadmpd-992c2fa2d4f0b3fae9bd26144c14e6a4e0ce9a75.tar.gz
mpd-992c2fa2d4f0b3fae9bd26144c14e6a4e0ce9a75.tar.xz
mpd-992c2fa2d4f0b3fae9bd26144c14e6a4e0ce9a75.zip
output_list: declare variables inside _plugins_for_each()
Don't require the caller to provide them.
Diffstat (limited to 'src/output_init.c')
-rw-r--r--src/output_init.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/output_init.c b/src/output_init.c
index 96f87f512..5bf8b93c0 100644
--- a/src/output_init.c
+++ b/src/output_init.c
@@ -49,12 +49,9 @@
static const struct audio_output_plugin *
audio_output_detect(GError **error)
{
- const struct audio_output_plugin *plugin;
- unsigned i;
-
g_warning("Attempt to detect audio output device");
- audio_output_plugins_for_each(plugin, i) {
+ audio_output_plugins_for_each(plugin) {
if (plugin->test_default_device == NULL)
continue;