diff options
author | Simon Howard | 2009-09-20 15:27:40 +0000 |
---|---|---|
committer | Simon Howard | 2009-09-20 15:27:40 +0000 |
commit | 42f7a9b8a27ae1192b49005f5be3eba32f740d05 (patch) | |
tree | c8e5898cefc9a4f8af061528ad0b755fbcdf4bb6 /textscreen/txt_io.c | |
parent | 10da45b90cba29506c142982e76abc35c39d5d26 (diff) | |
download | chocolate-doom-42f7a9b8a27ae1192b49005f5be3eba32f740d05.tar.gz chocolate-doom-42f7a9b8a27ae1192b49005f5be3eba32f740d05.tar.bz2 chocolate-doom-42f7a9b8a27ae1192b49005f5be3eba32f740d05.zip |
Use "const char" in libtextscreen where appropriate (thanks entryway).
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 1679
Diffstat (limited to 'textscreen/txt_io.c')
-rw-r--r-- | textscreen/txt_io.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/textscreen/txt_io.c b/textscreen/txt_io.c index 1e8106e7..1ecc7bd6 100644 --- a/textscreen/txt_io.c +++ b/textscreen/txt_io.c @@ -33,7 +33,7 @@ static struct { txt_color_t color; - char *name; + const char *name; } colors[] = { {TXT_COLOR_BLACK, "black"}, {TXT_COLOR_BLUE, "blue"}, @@ -147,11 +147,11 @@ void TXT_PutChar(int c) PutChar(screen, c); } -void TXT_Puts(char *s) +void TXT_Puts(const char *s) { int previous_color = TXT_COLOR_BLACK; unsigned char *screen; - char *p; + const char *p; char colorname_buf[20]; char *ending; int col; |