From 8ec41dca6cad8f47c439fd16f78bc35a54de53bc Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Fri, 2 Mar 2018 22:53:32 +0200 Subject: [PATCH] Make TXT_SetWindowTitle parameter const --- textscreen/txt_main.h | 2 +- textscreen/txt_sdl.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/textscreen/txt_main.h b/textscreen/txt_main.h index 3cc78b30..3c98265c 100644 --- a/textscreen/txt_main.h +++ b/textscreen/txt_main.h @@ -180,7 +180,7 @@ void TXT_Sleep(int timeout); void TXT_SetInputMode(txt_input_mode_t mode); // Set the window title of the window containing the text mode screen -void TXT_SetWindowTitle(char *title); +void TXT_SetWindowTitle(const char *title); // Safe string copy. void TXT_StringCopy(char *dest, const char *src, size_t dest_len); diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c index a0739042..7c8c193f 100644 --- a/textscreen/txt_sdl.c +++ b/textscreen/txt_sdl.c @@ -890,7 +890,7 @@ void TXT_SetInputMode(txt_input_mode_t mode) input_mode = mode; } -void TXT_SetWindowTitle(char *title) +void TXT_SetWindowTitle(const char *title) { SDL_SetWindowTitle(TXT_SDLWindow, title); }