aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_play.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-25 17:40:59 +0200
committerMax Kellermann <max@duempel.org>2008-09-25 17:40:59 +0200
commit1230f84524fc1625e0ff9eda67e2840334d7916f (patch)
tree47871f4881fb80689c0f5d60cc67cc6dea8bbd82 /src/screen_play.c
parentdb3d8351879b4c69408be0e25f45cd514ad42044 (diff)
downloadmpd-1230f84524fc1625e0ff9eda67e2840334d7916f.tar.gz
mpd-1230f84524fc1625e0ff9eda67e2840334d7916f.tar.xz
mpd-1230f84524fc1625e0ff9eda67e2840334d7916f.zip
screen: don't pass screen pointer to method paint()
None of the paint() implementations actually use the screen pointer - remove it from the method signature.
Diffstat (limited to '')
-rw-r--r--src/screen_play.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/screen_play.c b/src/screen_play.c
index 6eac958b6..3aaff229d 100644
--- a/src/screen_play.c
+++ b/src/screen_play.c
@@ -359,13 +359,13 @@ play_title(char *str, size_t size)
}
static void
-play_paint(mpd_unused screen_t *screen, mpdclient_t *c)
+play_paint(mpdclient_t *c)
{
list_window_paint(lw, list_callback, (void *) c);
}
static void
-play_update(screen_t *screen, mpdclient_t *c)
+play_update(mpd_unused screen_t *screen, mpdclient_t *c)
{
/* hide the cursor when mpd are playing and the user are inactive */
if (options.hide_cursor > 0 &&
@@ -388,7 +388,7 @@ play_update(screen_t *screen, mpdclient_t *c)
if (c->playlist.id != playlist_id) {
list_window_check_selected(lw, playlist_length(&c->playlist));
- play_paint(screen, c);
+ play_paint(c);
playlist_id = c->playlist.id;
} else {
list_window_paint(lw, list_callback, (void *) c);