commit 83d0f369df6d5582efad2c4a40454b114abe9a9e
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Mar 3 00:09:33 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Tue Mar 13 12:31:51 2018 +0200
Make TXT_SetDesktopTitle parameter const
---
textscreen/txt_desktop.c | 2 +-
textscreen/txt_desktop.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/textscreen/txt_desktop.c b/textscreen/txt_desktop.c
index e56a5ee4..d8428294 100644
--- a/textscreen/txt_desktop.c
+++ b/textscreen/txt_desktop.c
@@ -220,7 +220,7 @@ static void DrawHelpIndicator(void)
TXT_DrawString("=Help ");
}
-void TXT_SetDesktopTitle(char *title)
+void TXT_SetDesktopTitle(const char *title)
{
free(desktop_title);
desktop_title = strdup(title);
diff --git a/textscreen/txt_desktop.h b/textscreen/txt_desktop.h
index c8f5d543..8883c39d 100644
--- a/textscreen/txt_desktop.h
+++ b/textscreen/txt_desktop.h
@@ -39,7 +39,7 @@ int TXT_WindowKeyPress(txt_window_t *window, int c);
* @param title The title to display (UTF-8 format).
*/
-void TXT_SetDesktopTitle(char *title);
+void TXT_SetDesktopTitle(const char *title);
/**
* Exit the currently-running main loop and return from the