diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | io.c | 6 |
2 files changed, 7 insertions, 4 deletions
@@ -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. @@ -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; |