From 58c5bee9f0bcb46da7d113b66a4e1e2d7add9837 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 29 Oct 2008 20:40:27 +0100 Subject: output: use bool for return values and flags Don't return 0/-1 on success/error, but true/false. Instead of int, use bool for storing flags. --- src/output_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/output_init.c') diff --git a/src/output_init.c b/src/output_init.c index ebfbf137e..16b4dfb73 100644 --- a/src/output_init.c +++ b/src/output_init.c @@ -67,7 +67,7 @@ int audio_output_init(struct audio_output *ao, ConfigParam * param) if (plugin->test_default_device) { WARNING("Attempting to detect a %s audio " "device\n", plugin->name); - if (plugin->test_default_device() == 0) { + if (plugin->test_default_device()) { WARNING("Successfully detected a %s " "audio device\n", plugin->name); break; @@ -85,7 +85,7 @@ int audio_output_init(struct audio_output *ao, ConfigParam * param) ao->name = name; ao->plugin = plugin; - ao->open = 0; + ao->open = false; ao->convBuffer = NULL; ao->convBufferLen = 0; -- cgit v1.2.3