diff options
-rw-r--r-- | desktop/browser_private.h | 6 | ||||
-rw-r--r-- | desktop/browser_window.c | 4 | ||||
-rw-r--r-- | include/netsurf/browser_window.h | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/desktop/browser_private.h b/desktop/browser_private.h index 41b8fefd4..c9f9bbcf6 100644 --- a/desktop/browser_private.h +++ b/desktop/browser_private.h @@ -283,7 +283,8 @@ struct browser_window { * \param existing The existing window if cloning, else NULL */ nserror browser_window_initialise_common(enum browser_window_create_flags flags, - struct browser_window *bw, struct browser_window *existing); + struct browser_window *bw, + const struct browser_window *existing); /** @@ -331,7 +332,8 @@ void browser_window_set_status(struct browser_window *bw, const char *text); * \param bw browser window to set the type of the current drag for * \return root browser window */ -struct browser_window * browser_window_get_root(struct browser_window *bw); +struct browser_window * browser_window_get_root( + struct browser_window *bw); /** diff --git a/desktop/browser_window.c b/desktop/browser_window.c index f705ce901..602c8e1a5 100644 --- a/desktop/browser_window.c +++ b/desktop/browser_window.c @@ -3090,7 +3090,7 @@ browser_window_create(enum browser_window_create_flags flags, nserror browser_window_initialise_common(enum browser_window_create_flags flags, struct browser_window *bw, - struct browser_window *existing) + const struct browser_window *existing) { nserror err; assert(bw); @@ -4765,7 +4765,7 @@ nserror browser_window_show_cookies( } /* Exported interface, documented in browser_window.h */ -nserror browser_window_show_certificates(const struct browser_window *bw) +nserror browser_window_show_certificates(struct browser_window *bw) { nserror res; nsurl *url; diff --git a/include/netsurf/browser_window.h b/include/netsurf/browser_window.h index e463dfa49..73ca8e81b 100644 --- a/include/netsurf/browser_window.h +++ b/include/netsurf/browser_window.h @@ -817,6 +817,6 @@ nserror browser_window_show_cookies( * \return NSERROR_OK, or appropriate error otherwise. */ nserror browser_window_show_certificates( - const struct browser_window *bw); + struct browser_window *bw); #endif |