summaryrefslogtreecommitdiff
path: root/frontends/windows/localhistory.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/windows/localhistory.c')
-rw-r--r--frontends/windows/localhistory.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/frontends/windows/localhistory.c b/frontends/windows/localhistory.c
index 8921b2b31..e145cf79b 100644
--- a/frontends/windows/localhistory.c
+++ b/frontends/windows/localhistory.c
@@ -129,16 +129,12 @@ nsws_localhistory_up(struct nsws_localhistory *l, struct gui_window *gw)
}
-/**
- * close local history window
- *
- * \param gw the gui window to close history for
- */
-void nsws_localhistory_close(struct gui_window *w)
+/* exported interface documented in windows/localhistory.h */
+void nsws_localhistory_close(struct gui_window *gw)
{
- struct nsws_localhistory *l = gui_window_localhistory(w);
- if (l != NULL) {
- CloseWindow(l->hwnd);
+ struct nsws_localhistory *lh = gui_window_localhistory(gw);
+ if (lh != NULL) {
+ CloseWindow(lh->hwnd);
}
}