diff options
author | Max Kellermann <max@duempel.org> | 2008-10-08 11:03:39 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-08 11:03:39 +0200 |
commit | b084bc28ede5d397e88a4e2bdad8c07a55069589 (patch) | |
tree | d61d58cc73ed7d591df05fee2f4a48682e8d9c8c /src/inputPlugins/flac_plugin.c | |
parent | 71351160b1b6fd4203f27f9159ae39a476483e1a (diff) | |
download | mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.tar.gz mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.tar.xz mpd-b084bc28ede5d397e88a4e2bdad8c07a55069589.zip |
use the "bool" data type instead of "int"
"bool" should be used in C99 programs for boolean values.
Diffstat (limited to 'src/inputPlugins/flac_plugin.c')
-rw-r--r-- | src/inputPlugins/flac_plugin.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 }; |