aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-14 13:38:47 +0100
committerMax Kellermann <max@duempel.org>2009-01-14 13:38:47 +0100
commit7cc9ba45a9d9137f1bed26e427fea17910cd5eb6 (patch)
tree4164f42f7a0c7fe2d397bbc8333ed5b85845906d /src
parent2c540ee8a461d6f394baf5046a64341aa1655c18 (diff)
downloadmpd-7cc9ba45a9d9137f1bed26e427fea17910cd5eb6.tar.gz
mpd-7cc9ba45a9d9137f1bed26e427fea17910cd5eb6.tar.xz
mpd-7cc9ba45a9d9137f1bed26e427fea17910cd5eb6.zip
song_save: itemType is "enum tag_type", not "int"
Diffstat (limited to 'src')
-rw-r--r--src/song_save.c4
1 files 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)) {