summaryrefslogtreecommitdiff
path: root/amiga/history_local.c
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2014-11-21 23:58:56 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2014-11-22 00:02:28 +0000
commitba9a049d7bca2e6fb761349d96d527cfb43f3b53 (patch)
treece341384fa68cb1edfd09b60915d512d919930f2 /amiga/history_local.c
parent0c7dc95ddad16cb37a83eae2d56606c6642b4451 (diff)
downloadnetsurf-ba9a049d7bca2e6fb761349d96d527cfb43f3b53.tar.gz
netsurf-ba9a049d7bca2e6fb761349d96d527cfb43f3b53.tar.bz2
Simplify ami_history_open API and use correct call to get history object.
Diffstat (limited to 'amiga/history_local.c')
-rwxr-xr-xamiga/history_local.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/amiga/history_local.c b/amiga/history_local.c
index 93af92e0e..2fb1ba677 100755
--- a/amiga/history_local.c
+++ b/amiga/history_local.c
@@ -98,11 +98,17 @@ static void ami_history_redraw(struct history_window *hw)
/* exported interface documented in amiga/history_local.h */
-void ami_history_open(struct gui_window *gw, struct history *history)
+void ami_history_open(struct gui_window *gw)
{
+ struct history *history;
int width, height;
- assert(history);
+ if (gw->bw == NULL)
+ return;
+
+ history = browser_window_get_history(gw->bw);
+ if (history == NULL)
+ return;
if(!gw->hw)
{