aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-01 08:35:19 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-01 08:35:19 +0000
commit9b49e4db8cb755e78b6a7901614c1b015fb41559 (patch)
tree63e09721eaa6be87e49fc70f5a2f1d93895e2ee5 /io.c
parent008eb062d488fb83dc2dc43f9ac694069f8377d0 (diff)
downloadruby-9b49e4db8cb755e78b6a7901614c1b015fb41559.tar.gz
use list_head_init instead of open-coding it
While we cannot use LIST_HEAD since r63312, we can at least use list_head_init to make our code more readable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 6a0d7114d2..56332fe929 100644
--- a/io.c
+++ b/io.c
@@ -4671,8 +4671,8 @@ io_close_fptr(VALUE io)
VALUE write_io;
rb_io_t *write_fptr;
struct list_head busy;
- busy.n.next = busy.n.prev = &busy.n;
+ list_head_init(&busy);
write_io = GetWriteIO(io);
if (io != write_io) {
write_fptr = RFILE(write_io)->fptr;