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/decoder_thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/decoder_thread.c') diff --git a/src/decoder_thread.c b/src/decoder_thread.c index c5a2794cc..fd617a6ac 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -31,7 +31,7 @@ static void decodeStart(void) { struct decoder decoder; int ret; - int close_instream = 1; + bool close_instream = true; InputStream inStream; struct decoder_plugin *plugin = NULL; char path_max_fs[MPD_PATH_MAX]; @@ -53,7 +53,7 @@ static void decodeStart(void) goto stop_no_close; } - decoder.seeking = 0; + decoder.seeking = false; dc.state = DECODE_STATE_START; dc.command = DECODE_COMMAND_NONE; @@ -137,7 +137,7 @@ static void decodeStart(void) if (plugin->file_decode != NULL) { closeInputStream(&inStream); - close_instream = 0; + close_instream = false; decoder.plugin = plugin; ret = plugin->file_decode(&decoder, path_max_fs); -- cgit v1.2.3