aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-08-04 00:14:24 +0200
committerMax Kellermann <max@duempel.org>2009-08-04 00:14:24 +0200
commitc7563a5783c951b75c40123be3bbfdc08794864e (patch)
treea128ebe5906bd28e057a23619bfab4a0436ac2af
parentb06b4f937d51b11278266ecc4b41da61adeb871f (diff)
downloadmpd-c7563a5783c951b75c40123be3bbfdc08794864e.tar.gz
mpd-c7563a5783c951b75c40123be3bbfdc08794864e.tar.xz
mpd-c7563a5783c951b75c40123be3bbfdc08794864e.zip
tag_id3: corrected parameter types
Changed "int type" to "enum tag_type". Converted "int is_id3v1" to "bool".
Diffstat (limited to '')
-rw-r--r--src/tag_id3.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tag_id3.c b/src/tag_id3.c
index 0432c88b1..84e980ec3 100644
--- a/src/tag_id3.c
+++ b/src/tag_id3.c
@@ -79,7 +79,7 @@ tag_id3_getstring(const struct id3_frame *frame, unsigned i)
/* This will try to convert a string to utf-8,
*/
static id3_utf8_t *
-import_id3_string(int is_id3v1, const id3_ucs4_t *ucs4, int type)
+import_id3_string(bool is_id3v1, const id3_ucs4_t *ucs4, enum tag_type type)
{
id3_utf8_t *utf8, *utf8_stripped;
id3_latin1_t *isostr;
@@ -120,7 +120,8 @@ import_id3_string(int is_id3v1, const id3_ucs4_t *ucs4, int type)
}
static void
-tag_id3_import_frame(struct tag *dest, struct id3_tag *tag, const char *id, int type)
+tag_id3_import_frame(struct tag *dest, struct id3_tag *tag, const char *id,
+ enum tag_type type)
{
struct id3_frame const *frame;
id3_ucs4_t const *ucs4;