use the "bool" data type instead of "int"

"bool" should be used in C99 programs for boolean values.
This commit is contained in:
Max Kellermann
2008-10-08 11:03:39 +02:00
parent 71351160b1
commit b084bc28ed
20 changed files with 74 additions and 65 deletions

View File

@@ -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);