From ef040e296e46fcc7620edaf89ffac05e065ec3e3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 3 Oct 2008 14:31:00 +0200 Subject: screen: export the global variable "screen" screen_t is a singleton. We do not have to pass it around everywhere. Export the one global variable. --- src/screen_browser.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/screen_browser.c') diff --git a/src/screen_browser.c b/src/screen_browser.c index e68e70285..00965edb0 100644 --- a/src/screen_browser.c +++ b/src/screen_browser.c @@ -453,7 +453,7 @@ browser_handle_mouse_event(struct screen_browser *browser, mpdclient_t *c) #endif bool -browser_cmd(struct screen_browser *browser, struct screen *screen, +browser_cmd(struct screen_browser *browser, struct mpdclient *c, command_t cmd) { struct filelist_entry *entry; @@ -487,8 +487,7 @@ browser_cmd(struct screen_browser *browser, struct screen *screen, case CMD_LIST_RFIND: case CMD_LIST_FIND_NEXT: case CMD_LIST_RFIND_NEXT: - screen_find(screen, - browser->lw, filelist_length(browser->filelist), + screen_find(browser->lw, filelist_length(browser->filelist), cmd, browser_lw_callback, browser->filelist); return true; -- cgit v1.2.3