From 7cc9ba45a9d9137f1bed26e427fea17910cd5eb6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 14 Jan 2009 13:38:47 +0100 Subject: song_save: itemType is "enum tag_type", not "int" --- src/song_save.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/song_save.c b/src/song_save.c index 0a6e000e4..30a095dfe 100644 --- a/src/song_save.c +++ b/src/song_save.c @@ -86,7 +86,7 @@ insertSongIntoList(struct songvec *sv, struct song *newsong) } } -static int matchesAnMpdTagItemKey(char *buffer, int *itemType) +static int matchesAnMpdTagItemKey(char *buffer, enum tag_type *itemType) { int i; @@ -108,7 +108,7 @@ void readSongInfoIntoList(FILE *fp, struct songvec *sv, { char buffer[MPD_PATH_MAX + 1024]; struct song *song = NULL; - int itemType; + enum tag_type itemType; while (fgets(buffer, sizeof(buffer), fp) && !g_str_has_prefix(buffer, SONG_END)) { -- cgit v1.2.3