summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cd851b3)
raw | patch | inline | side by side (parent: cd851b3)
author | Max Kellermann <max@duempel.org> | |
Wed, 30 Sep 2009 20:12:51 +0000 (22:12 +0200) | ||
committer | Max Kellermann <max@duempel.org> | |
Wed, 30 Sep 2009 20:12:51 +0000 (22:12 +0200) |
src/screen_browser.c | patch | blob | history |
diff --git a/src/screen_browser.c b/src/screen_browser.c
index 3c94746cacd738b9b4cf1a6fc3179460199438e2..65fefbde084b3bde244d218aac241f150f86b9cf 100644 (file)
--- a/src/screen_browser.c
+++ b/src/screen_browser.c
for (i = 0; i < filelist_length(fl); ++i) {
struct filelist_entry *entry = filelist_get(fl, i);
- struct mpd_entity *entity = entry->entity;
+ const struct mpd_entity *entity = entry->entity;
if (entity != NULL && mpd_entity_get_type(entity) == MPD_ENTITY_TYPE_SONG) {
const struct mpd_song *song =
const char *
browser_lw_callback(unsigned idx, bool *highlight, G_GNUC_UNUSED char **second_column, void *data)
{
- struct filelist *fl = (struct filelist *) data;
+ const struct filelist *fl = (const struct filelist *) data;
static char buf[BUFSIZE];
- struct filelist_entry *entry;
- struct mpd_entity *entity;
+ const struct filelist_entry *entry;
+ const struct mpd_entity *entity;
if (fl == NULL || idx >= filelist_length(fl))
return NULL;