aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-14 22:51:11 +0100
committerMax Kellermann <max@duempel.org>2009-01-14 22:51:11 +0100
commitb8e06d414ac0dabb063e52a9caed495db67ef547 (patch)
treee21beee4c5507cedb442a5d6c558a5e8f2dbc288
parentca42f0142736d3d4e8145fd4e1abd7350604808e (diff)
downloadmpd-b8e06d414ac0dabb063e52a9caed495db67ef547.tar.gz
mpd-b8e06d414ac0dabb063e52a9caed495db67ef547.tar.xz
mpd-b8e06d414ac0dabb063e52a9caed495db67ef547.zip
oggvorbis: use bool
Make ogg_parseCommentAddToTag() return bool instead of unsigned int.
Diffstat (limited to '')
-rw-r--r--src/decoder/oggvorbis_plugin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/decoder/oggvorbis_plugin.c b/src/decoder/oggvorbis_plugin.c
index 285ad6d07..76e2e58ec 100644
--- a/src/decoder/oggvorbis_plugin.c
+++ b/src/decoder/oggvorbis_plugin.c
@@ -139,9 +139,9 @@ ogg_getReplayGainInfo(char **comments)
static const char *VORBIS_COMMENT_TRACK_KEY = "tracknumber";
static const char *VORBIS_COMMENT_DISC_KEY = "discnumber";
-static unsigned int ogg_parseCommentAddToTag(char *comment,
- unsigned int itemType,
- struct tag ** tag)
+static bool
+ogg_parseCommentAddToTag(char *comment, unsigned int itemType,
+ struct tag ** tag)
{
const char *needle;
unsigned int len;
@@ -163,10 +163,10 @@ static unsigned int ogg_parseCommentAddToTag(char *comment,
tag_add_item(*tag, itemType, comment + len + 1);
- return 1;
+ return true;
}
- return 0;
+ return false;
}
static struct tag *oggCommentsParse(char **comments)