aboutsummaryrefslogtreecommitdiffstats
path: root/src/screen_search.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_search.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 'src/screen_search.c')
-rw-r--r--src/screen_search.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/screen_search.c b/src/screen_search.c
index 723409028..d29c7bf95 100644
--- a/src/screen_search.c
+++ b/src/screen_search.c
@@ -387,7 +387,7 @@ resize(int cols, int rows)
}
static void
-paint(mpd_unused screen_t *screen, mpdclient_t *c)
+paint(mpdclient_t *c)
{
if (browser.filelist) {
browser.lw->flags = 0;
@@ -404,10 +404,10 @@ paint(mpd_unused screen_t *screen, mpdclient_t *c)
}
static void
-update(screen_t *screen, mpdclient_t *c)
+update(mpd_unused screen_t *screen, mpdclient_t *c)
{
if (browser.filelist == NULL || browser.filelist->updated) {
- paint(screen, c);
+ paint(c);
return;
}
@@ -450,7 +450,7 @@ search_cmd(screen_t *screen, mpdclient_t *c, command_t cmd)
case CMD_SELECT_ALL:
browser_handle_select_all(&browser, c);
- paint (screen, c);
+ paint(c);
return 0;
case CMD_SEARCH_MODE: