From ac6cc0e4a426fa15467485650337bf2963186e0f Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Fri, 27 Mar 2009 17:55:58 +0000 Subject: More permitted aliasing svn path=/trunk/netsurf/; revision=6947 --- riscos/url_complete.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'riscos/url_complete.c') diff --git a/riscos/url_complete.c b/riscos/url_complete.c index 13b489e8a..81600f262 100644 --- a/riscos/url_complete.c +++ b/riscos/url_complete.c @@ -35,6 +35,7 @@ #include "riscos/url_complete.h" #include "riscos/wimp.h" #include "riscos/wimp_event.h" +#include "riscos/wimputils.h" #include "utils/utils.h" #define MAXIMUM_VISIBLE_LINES 7 @@ -202,7 +203,7 @@ bool ro_gui_url_complete_keypress(struct gui_window *g, uint32_t key) return false; } url_complete_matches_reset = true; - ro_gui_url_complete_resize(g, (wimp_open *)&state); + ro_gui_url_complete_resize(g, PTR_WIMP_OPEN(&state)); url_complete_matches_reset = false; /* redraw the relevant bits of the window */ @@ -325,7 +326,7 @@ bool ro_gui_url_complete_keypress(struct gui_window *g, uint32_t key) state.yscroll = -((url_complete_matches_selection + 1) * 44) + height; - error = xwimp_open_window((wimp_open *)(&state)); + error = xwimp_open_window(PTR_WIMP_OPEN(&state)); if (error) { LOG(("xwimp_open_window: 0x%x: %s", error->errnum, error->errmess)); -- cgit v1.2.3