summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-04 04:01:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-04 04:01:13 +0000
commit83e28e5176600760a92b724a405420a79e08b6b4 (patch)
tree3512174c8ca6b5c2bb4ffec64db2955910388351
parent8f0f91e1559450c68a6ae30afd3e050bffec6de4 (diff)
* io.c (struct sysopen_struct, rb_sysopen_internal, rb_sysopen):
constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19118 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--io.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 489f257ab5..226719f0db 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-Thu Sep 4 12:33:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Sep 4 13:01:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (struct sysopen_struct, rb_sysopen_internal, rb_sysopen):
+ constified.
* io.c: expanded ARGF members macros.
diff --git a/io.c b/io.c
index f5d3e088a4..67414fb319 100644
--- a/io.c
+++ b/io.c
@@ -3911,7 +3911,7 @@ rb_io_extract_modeenc(VALUE *mode_p, VALUE opthash,
}
struct sysopen_struct {
- char *fname;
+ const char *fname;
int flag;
mode_t mode;
};
@@ -3924,7 +3924,7 @@ sysopen_func(void *ptr)
}
static int
-rb_sysopen_internal(char *fname, int flags, mode_t mode)
+rb_sysopen_internal(const char *fname, int flags, mode_t mode)
{
struct sysopen_struct data;
data.fname = fname;
@@ -3934,7 +3934,7 @@ rb_sysopen_internal(char *fname, int flags, mode_t mode)
}
static int
-rb_sysopen(char *fname, int flags, mode_t mode)
+rb_sysopen(const char *fname, int flags, mode_t mode)
{
int fd;