diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-19 05:23:48 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-19 05:23:48 +0000 |
commit | 38e8a979fc3b7e0b1acefa5968fec32f6308ea77 (patch) | |
tree | 948bbd5e8b91bb48343f5c7b10943a0a0a168053 /file.c | |
parent | 3152d68bf3510b47d2bfb811cb1044e27872b5a9 (diff) | |
download | ruby-38e8a979fc3b7e0b1acefa5968fec32f6308ea77.tar.gz |
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
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |