summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.c b/file.c
index 5d51005260..b0ba95dca8 100644
--- a/file.c
+++ b/file.c
@@ -1480,7 +1480,7 @@ rb_file_s_size(VALUE klass, VALUE fname)
static VALUE
rb_file_ftype(const struct stat *st)
{
- char *t;
+ const char *t;
if (S_ISREG(st->st_mode)) {
t = "file";