diff --git a/src/filelist.c b/src/filelist.c
index 415eec4021a6038c5def9f96a1d05b6871e52f5f..2e078635ad230a54e04db2c33fe611307068294a 100644 (file)
--- a/src/filelist.c
+++ b/src/filelist.c
compare_func);
}
-struct filelist_entry *
+int
filelist_find_song(struct filelist *fl, const struct mpd_song *song)
{
guint i;
struct mpd_song *song2 = entity->info.song;
if (strcmp(song->file, song2->file) == 0)
- return entry;
+ return i;
}
}
- return NULL;
+ return -1;
}
int