diff options
author | Max Kellermann <max@duempel.org> | 2008-10-03 14:30:59 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-03 14:30:59 +0200 |
commit | 0b2eee9489a8acef3cdee6f6fa0df6d167c53b8d (patch) | |
tree | 0d6f69175f1c45a2815131fc219faec2e3551a0d /src/screen_file.c | |
parent | 1d0e05d6b1621a95acdb18ea03d45ce955495ee4 (diff) | |
download | mpd-0b2eee9489a8acef3cdee6f6fa0df6d167c53b8d.tar.gz mpd-0b2eee9489a8acef3cdee6f6fa0df6d167c53b8d.tar.xz mpd-0b2eee9489a8acef3cdee6f6fa0df6d167c53b8d.zip |
screen: don't pass mpdclient pointer to method paint()
None of the paint() implementations acutally uses the mpdclient
pointer. Remove it from the method signature.
Diffstat (limited to '')
-rw-r--r-- | src/screen_file.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/screen_file.c b/src/screen_file.c index 3029165f2..9dfe4ac68 100644 --- a/src/screen_file.c +++ b/src/screen_file.c @@ -37,12 +37,12 @@ static struct screen_browser browser; static void -browse_paint(mpdclient_t *c); +browse_paint(void); static void file_repaint(void) { - browse_paint(NULL); + browse_paint(); wrefresh(browser.lw->w); } @@ -190,7 +190,7 @@ browse_title(char *str, size_t size) } static void -browse_paint(mpd_unused mpdclient_t *c) +browse_paint(void) { list_window_paint(browser.lw, browser_lw_callback, browser.filelist); } @@ -266,4 +266,3 @@ const struct screen_functions screen_browse = { .cmd = browse_cmd, .get_title = browse_title, }; - |