From: Max Kellermann Date: Wed, 30 Sep 2009 20:12:51 +0000 (+0200) Subject: screen_browser: add "const" to several variables X-Git-Tag: release-0.16~249 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=223ab99700bde4a53f0990932de8652dc307f9e4;p=ncmpc.git screen_browser: add "const" to several variables --- diff --git a/src/screen_browser.c b/src/screen_browser.c index 3c94746..65fefbd 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -50,7 +50,7 @@ screen_browser_sync_highlights(struct filelist *fl, 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 = @@ -71,10 +71,10 @@ screen_browser_sync_highlights(struct filelist *fl, 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;