From acca45d6a22406a74d5dc56e00ff0c6ad8e478b8 Mon Sep 17 00:00:00 2001 From: Bardur Arantsson Date: Tue, 26 Mar 2013 23:00:48 +0100 Subject: Constness fixes --- src/files.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/files.c') diff --git a/src/files.c b/src/files.c index ad8322cf..a599af23 100644 --- a/src/files.c +++ b/src/files.c @@ -1030,7 +1030,7 @@ static void prt_lnum(cptr header, s32b num, int row, int col, byte color) * Print number with header at given row, column */ static void prt_num(cptr header, int num, int row, int col, byte color, - char *space) + cptr space) { int len = strlen(header); char out_val[32]; @@ -5670,7 +5670,7 @@ errr get_rnd_line(const char *file_name, char *output) * * Caution: 'linbuf' should be at least 80 byte long. */ -char *get_line(char* fname, cptr fdir, char *linbuf, int line) +char *get_line(const char* fname, cptr fdir, char *linbuf, int line) { FILE* fp; int i; @@ -5718,7 +5718,7 @@ char *get_line(char* fname, cptr fdir, char *linbuf, int line) * understand such complexities -- and added extra error checkings * and made sure fd is always closed -- pelpel */ -errr get_xtra_line(char *file_name, monster_type *m_ptr, char *output) +errr get_xtra_line(const char *file_name, monster_type *m_ptr, char *output) { FILE *fp; char buf[1024]; -- cgit v1.2.3