From 5c19776f2fc1416dab1da2f2baae9a0c764df965 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 26 Oct 2008 20:56:46 +0100 Subject: input_stream: use "bool" instead of "int" For boolean values and success flags, use bool instead of integer (1/0 for true/false, 0/-1 for success/failure). --- src/decoder/mpc_plugin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/decoder/mpc_plugin.c') diff --git a/src/decoder/mpc_plugin.c b/src/decoder/mpc_plugin.c index 7d792f429..12a11de6b 100644 --- a/src/decoder/mpc_plugin.c +++ b/src/decoder/mpc_plugin.c @@ -38,7 +38,7 @@ static mpc_bool_t mpc_seek_cb(void *vdata, mpc_int32_t offset) { MpcCallbackData *data = (MpcCallbackData *) vdata; - return input_stream_seek(data->inStream, offset, SEEK_SET) < 0 ? 0 : 1; + return input_stream_seek(data->inStream, offset, SEEK_SET) ? 0 : 1; } static mpc_int32_t mpc_tell_cb(void *vdata) @@ -260,7 +260,7 @@ static float mpcGetTime(char *file) mpc_streaminfo_init(&info); - if (input_stream_open(&inStream, file) < 0) { + if (!input_stream_open(&inStream, file)) { DEBUG("mpcGetTime: Failed to open file: %s\n", file); return -1; } -- cgit v1.2.3