song_save: itemType is "enum tag_type", not "int"

This commit is contained in:
Max Kellermann 2009-01-14 13:38:47 +01:00
parent 2c540ee8a4
commit 7cc9ba45a9

View File

@ -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; int i;
@ -108,7 +108,7 @@ void readSongInfoIntoList(FILE *fp, struct songvec *sv,
{ {
char buffer[MPD_PATH_MAX + 1024]; char buffer[MPD_PATH_MAX + 1024];
struct song *song = NULL; struct song *song = NULL;
int itemType; enum tag_type itemType;
while (fgets(buffer, sizeof(buffer), fp) && while (fgets(buffer, sizeof(buffer), fp) &&
!g_str_has_prefix(buffer, SONG_END)) { !g_str_has_prefix(buffer, SONG_END)) {