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:
parent
3152d68bf3
commit
38e8a979fc
4
file.c
4
file.c
@ -5766,11 +5766,11 @@ static VALUE
|
|||||||
rb_file_s_mkfifo(int argc, VALUE *argv)
|
rb_file_s_mkfifo(int argc, VALUE *argv)
|
||||||
{
|
{
|
||||||
VALUE path;
|
VALUE path;
|
||||||
int mode = 0666;
|
mode_t mode = 0666;
|
||||||
|
|
||||||
rb_check_arity(argc, 1, 2);
|
rb_check_arity(argc, 1, 2);
|
||||||
if (argc > 1) {
|
if (argc > 1) {
|
||||||
mode = NUM2INT(argv[1]);
|
mode = NUM2MODET(argv[1]);
|
||||||
}
|
}
|
||||||
path = argv[0];
|
path = argv[0];
|
||||||
FilePathValue(path);
|
FilePathValue(path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user