From 38e8a979fc3b7e0b1acefa5968fec32f6308ea77 Mon Sep 17 00:00:00 2001 From: normal Date: Sun, 19 Nov 2017 05:23:48 +0000 Subject: [PATCH] file.c (rb_file_s_mkfifo): use mode_t instead of int mode_t is the correct type for mkfifo(3). This fixes an oversight from r60592 which made the same change to several other functions. * file.c (rb_file_s_mkfifo): use mode_t instead of int git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60847 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- file.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/file.c b/file.c index 144f1f47a6..6080bbfd2a 100644 --- a/file.c +++ b/file.c @@ -5766,11 +5766,11 @@ static VALUE rb_file_s_mkfifo(int argc, VALUE *argv) { VALUE path; - int mode = 0666; + mode_t mode = 0666; rb_check_arity(argc, 1, 2); if (argc > 1) { - mode = NUM2INT(argv[1]); + mode = NUM2MODET(argv[1]); } path = argv[0]; FilePathValue(path);