summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2014-05-25 01:14:01 +0100
committerVincent Sanders <vince@kyllikki.org>2014-05-25 01:14:01 +0100
commitb34a6bbe31eeefcc619acb6091a52fe94d9db6d5 (patch)
tree54f945667523e9c9c12c34a8905ef700cd3e4c4a
parent649f4f8890f69440107e924d286c1edfa799f752 (diff)
downloadnetsurf-b34a6bbe31eeefcc619acb6091a52fe94d9db6d5.tar.gz
netsurf-b34a6bbe31eeefcc619acb6091a52fe94d9db6d5.tar.bz2
fix warnings in amiga build introduced in websearch changes
-rw-r--r--amiga/gui.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 4f9728d06..abc932676 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -211,7 +211,6 @@ static void ami_schedule_redraw_remove(struct gui_window_2 *gwin);
static bool gui_window_get_scroll(struct gui_window *g, int *sx, int *sy);
static void gui_window_set_scroll(struct gui_window *g, int sx, int sy);
static void gui_window_remove_caret(struct gui_window *g);
-static void gui_set_search_ico(hlcache_handle *ico);
static void gui_window_place_caret(struct gui_window *g, int x, int y, int height, const struct rect *clip);
@@ -4784,7 +4783,7 @@ static uint32 ami_set_favicon_render_hook(struct Hook *hook, APTR space,
* \param ico_bitmap The icon bitmap representing the provider.
* \return NSERROR_OK on success else error code.
*/
-nserror gui_search_web_provider_update(const char *provider_name,
+static nserror gui_search_web_provider_update(const char *provider_name,
struct bitmap *ico_bitmap)
{
struct BitMap *bm = NULL;
@@ -4794,8 +4793,8 @@ nserror gui_search_web_provider_update(const char *provider_name,
struct nsObject *nnode;
struct gui_window_2 *gwin;
- if(IsMinListEmpty(window_list)) return;
- if(nsoption_bool(kiosk_mode) == true) return;
+ if(IsMinListEmpty(window_list)) return NSERROR_BAD_PARAMETER;
+ if(nsoption_bool(kiosk_mode) == true) return NSERROR_BAD_PARAMETER;
if (ico_bitmap != NULL) {
bm = ami_bitmap_get_native(ico_bitmap, 16, 16, NULL);