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 | 4de5405c28bba65e9aed02dd97448cbeb39a101b (patch) | |
tree | 948bbd5e8b91bb48343f5c7b10943a0a0a168053 /file.c | |
parent | 60ddf10266a0904b3c8131c9207a76972c6bb33a (diff) | |
download | ruby-4de5405c28bba65e9aed02dd97448cbeb39a101b.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); |