summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-10 10:37:15 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-04-10 10:37:15 +0900
commit614d816a1fab911ae29d8741526475d1f21484df (patch)
tree59d8d3063fa3fb8f1a3adfda06a9f7d50181556a /io.c
parent55a5a4bc03de1027dca359d50e23ee57c2224353 (diff)
Constified writev function family
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/io.c b/io.c
index e10bf2d51e..2ba983cfbe 100644
--- a/io.c
+++ b/io.c
@@ -1716,7 +1716,7 @@ io_binwritev(struct iovec *iov, int iovcnt, rb_io_t *fptr)
}
static long
-io_fwritev(int argc, VALUE *argv, rb_io_t *fptr)
+io_fwritev(int argc, const VALUE *argv, rb_io_t *fptr)
{
int i, converted, iovcnt = argc + 1;
long n;
@@ -1764,7 +1764,7 @@ iovcnt_ok(int iovcnt)
#endif /* HAVE_WRITEV */
static VALUE
-io_writev(int argc, VALUE *argv, VALUE io)
+io_writev(int argc, const VALUE *argv, VALUE io)
{
rb_io_t *fptr;
long n;
@@ -1838,7 +1838,7 @@ rb_io_write(VALUE io, VALUE str)
}
static VALUE
-rb_io_writev(VALUE io, int argc, VALUE *argv)
+rb_io_writev(VALUE io, int argc, const VALUE *argv)
{
if (argc > 1 && rb_obj_method_arity(io, id_write) == 1) {
if (io != rb_stderr && RTEST(ruby_verbose)) {