From b084bc28ede5d397e88a4e2bdad8c07a55069589 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 8 Oct 2008 11:03:39 +0200 Subject: use the "bool" data type instead of "int" "bool" should be used in C99 programs for boolean values. --- src/inputPlugins/flac_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/inputPlugins/flac_plugin.c') diff --git a/src/inputPlugins/flac_plugin.c b/src/inputPlugins/flac_plugin.c index 0b4fbf27e..cd8a8efd3 100644 --- a/src/inputPlugins/flac_plugin.c +++ b/src/inputPlugins/flac_plugin.c @@ -427,9 +427,9 @@ static int oggflac_decode(struct decoder *decoder, InputStream * inStream) return flac_decode_internal(decoder, inStream, 1); } -static unsigned int oggflac_try_decode(InputStream * inStream) +static bool oggflac_try_decode(InputStream * inStream) { - return (ogg_stream_type_detect(inStream) == FLAC) ? 1 : 0; + return ogg_stream_type_detect(inStream) == FLAC; } static const char *oggflac_suffixes[] = { "ogg", "oga", NULL }; -- cgit v1.2.3