* 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
This commit is contained in:
parent
8f0f91e155
commit
83e28e5176
@ -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.
|
* io.c: expanded ARGF members macros.
|
||||||
|
|
||||||
|
6
io.c
6
io.c
@ -3911,7 +3911,7 @@ rb_io_extract_modeenc(VALUE *mode_p, VALUE opthash,
|
|||||||
}
|
}
|
||||||
|
|
||||||
struct sysopen_struct {
|
struct sysopen_struct {
|
||||||
char *fname;
|
const char *fname;
|
||||||
int flag;
|
int flag;
|
||||||
mode_t mode;
|
mode_t mode;
|
||||||
};
|
};
|
||||||
@ -3924,7 +3924,7 @@ sysopen_func(void *ptr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
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;
|
struct sysopen_struct data;
|
||||||
data.fname = fname;
|
data.fname = fname;
|
||||||
@ -3934,7 +3934,7 @@ rb_sysopen_internal(char *fname, int flags, mode_t mode)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
rb_sysopen(char *fname, int flags, mode_t mode)
|
rb_sysopen(const char *fname, int flags, mode_t mode)
|
||||||
{
|
{
|
||||||
int fd;
|
int fd;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user