summaryrefslogtreecommitdiff
path: root/src/files.c
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2013-03-26 23:00:48 +0100
committerBardur Arantsson <bardur@scientician.net>2013-09-27 14:46:42 +0200
commitacca45d6a22406a74d5dc56e00ff0c6ad8e478b8 (patch)
treef461ef0b84f500d73ad4c4e2d8bf1e7f36dce860 /src/files.c
parent3ceb6ba12f66db6df2e1b73e02de33a8950564de (diff)
Constness fixes
Diffstat (limited to 'src/files.c')
-rw-r--r--src/files.c6
1 files changed, 3 insertions, 3 deletions
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];