ref: 94d85c51b0aa49fbfcc72fc969815fb477052319
parent: 232c968ed9bb922f99ef802f450b9c38ab156da6
author: Turo Lamminen <[email protected]>
date: Tue Mar 13 15:44:25 EDT 2018
Make TXT_SetWindowHelpURL help_url parameter const
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -508,7 +508,7 @@
TXT_SetWidgetFocus(window, focused);
}
-void TXT_SetWindowHelpURL(txt_window_t *window, char *help_url)
+void TXT_SetWindowHelpURL(txt_window_t *window, const char *help_url)
{
window->help_url = help_url;
}
--- a/textscreen/txt_window.h
+++ b/textscreen/txt_window.h
@@ -207,7 +207,7 @@
* window, or NULL to set no help for this window.
*/
-void TXT_SetWindowHelpURL(txt_window_t *window, char *help_url);
+void TXT_SetWindowHelpURL(txt_window_t *window, const char *help_url);
/**
* Open the help URL for the given window, if one is set.