From 42f7a9b8a27ae1192b49005f5be3eba32f740d05 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sun, 20 Sep 2009 15:27:40 +0000 Subject: Use "const char" in libtextscreen where appropriate (thanks entryway). Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1679 --- textscreen/txt_sdl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'textscreen/txt_sdl.c') diff --git a/textscreen/txt_sdl.c b/textscreen/txt_sdl.c index 367ed095..bc98a51b 100644 --- a/textscreen/txt_sdl.c +++ b/textscreen/txt_sdl.c @@ -217,7 +217,7 @@ static inline void UpdateCharacter(int x, int y) unsigned char *p; unsigned char *s, *s1; int bg, fg; - int x1, y1; + unsigned int x1, y1; p = &screendata[(y * TXT_SCREEN_W + x) * 2]; character = p[0]; @@ -458,7 +458,7 @@ signed int TXT_GetChar(void) return -1; } -static char *SpecialKeyName(int key) +static const char *SpecialKeyName(int key) { switch (key) { @@ -524,7 +524,7 @@ static char *SpecialKeyName(int key) void TXT_GetKeyDescription(int key, char *buf) { - char *keyname; + const char *keyname; keyname = SpecialKeyName(key); -- cgit v1.2.3