commit 94d85c51b0aa49fbfcc72fc969815fb477052319
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Tue Mar 13 19:44:25 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 19:44:25 2018 +0200
Make TXT_SetWindowHelpURL help_url parameter const
---
textscreen/txt_window.c | 2 +-
textscreen/txt_window.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c
index 47dee6fc..422e3e17 100644
--- a/textscreen/txt_window.c
+++ b/textscreen/txt_window.c
@@ -508,7 +508,7 @@ void TXT_SetWindowFocus(txt_window_t *window, int focused)
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;
}
diff --git a/textscreen/txt_window.h b/textscreen/txt_window.h
index 4424055c..7042ecf5 100644
--- a/textscreen/txt_window.h
+++ b/textscreen/txt_window.h
@@ -207,7 +207,7 @@ txt_window_t *TXT_MessageBox(const char *title, const char *message, ...);
* 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.