From d767883a417667ceebf5bb241d02337f34bc8016 Mon Sep 17 00:00:00 2001 From: Bertrik Sikken Date: Thu, 6 Aug 2009 09:28:25 +0000 Subject: Various files: make functions static if they're local or make sure there is a proper #include if not git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22184 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/librm/rm.c | 2 +- apps/gui/list.c | 5 ----- apps/gui/list.h | 5 +++++ apps/gui/wps.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'apps') diff --git a/apps/codecs/librm/rm.c b/apps/codecs/librm/rm.c index b205e7f88d..00ee37a2f2 100644 --- a/apps/codecs/librm/rm.c +++ b/apps/codecs/librm/rm.c @@ -29,7 +29,7 @@ #define SWAP(a, b) do{uint8_t SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0) -void advance_buffer(uint8_t **buf, int val) +static void advance_buffer(uint8_t **buf, int val) { *buf += val; } diff --git a/apps/gui/list.c b/apps/gui/list.c index eb9c025a95..8a65d3f298 100644 --- a/apps/gui/list.c +++ b/apps/gui/list.c @@ -580,11 +580,6 @@ void gui_synclist_speak_item(struct gui_synclist * lists) else _gui_synclist_speak_item(lists, false); } -#if defined(HAVE_TOUCHSCREEN) -/* this needs to be fixed if we ever get more than 1 touchscreen on a target */ -unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list); -#endif - bool gui_synclist_do_button(struct gui_synclist * lists, int *actionptr, enum list_wrap wrap) { diff --git a/apps/gui/list.h b/apps/gui/list.h index 6b9f557d38..50aaebe93a 100644 --- a/apps/gui/list.h +++ b/apps/gui/list.h @@ -182,6 +182,11 @@ extern bool gui_synclist_do_button(struct gui_synclist * lists, int *action, enum list_wrap); +#if defined(HAVE_TOUCHSCREEN) +/* this needs to be fixed if we ever get more than 1 touchscreen on a target */ +unsigned gui_synclist_do_touchscreen(struct gui_synclist * gui_list); +#endif + /* If the list has a pending postponed scheduled announcement, that may become due before the next get_action tmieout. This function adjusts the get_action timeout appropriately. */ diff --git a/apps/gui/wps.c b/apps/gui/wps.c index a5142a0726..29c9403235 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -197,7 +197,7 @@ bool is_wps_fading(void) return wps_fading_out; } -bool update_onvol_change(struct gui_wps * gwps) +static bool update_onvol_change(struct gui_wps * gwps) { skin_update(gwps, WPS_REFRESH_NON_STATIC); -- cgit v1.2.3