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
This commit is contained in:
normal 2017-11-19 05:23:48 +00:00
parent 3152d68bf3
commit 38e8a979fc

4
file.c
View File

@ -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);