aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-30 08:38:54 +0100
committerMax Kellermann <max@duempel.org>2008-10-30 08:38:54 +0100
commit62d4fa9306fdb5dd0a1b592fd8dbdf1b679d92ca (patch)
tree565dd0a8c2c50a31dac369408e6b499eb7daafb5 /src/decoder_api.c
parentd29bad441066919f808c4ad1657bc5600fd9bd45 (diff)
downloadmpd-62d4fa9306fdb5dd0a1b592fd8dbdf1b679d92ca.tar.gz
mpd-62d4fa9306fdb5dd0a1b592fd8dbdf1b679d92ca.tar.xz
mpd-62d4fa9306fdb5dd0a1b592fd8dbdf1b679d92ca.zip
decoder: 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.
Diffstat (limited to 'src/decoder_api.c')
-rw-r--r--src/decoder_api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c
index 7888ebb95..d9ac186e3 100644
--- a/src/decoder_api.c
+++ b/src/decoder_api.c
@@ -96,7 +96,7 @@ void decoder_seek_error(struct decoder * decoder)
{
assert(dc.command == DECODE_COMMAND_SEEK);
- dc.seekError = 1;
+ dc.seekError = true;
decoder_command_finished(decoder);
}
@@ -109,7 +109,7 @@ size_t decoder_read(struct decoder *decoder,
assert(inStream != NULL);
assert(buffer != NULL);
- while (1) {
+ while (true) {
/* XXX don't allow decoder==NULL */
if (decoder != NULL &&
(dc.command != DECODE_COMMAND_SEEK ||