mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27944 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c6b6293bc1
commit
87af442f94
11 changed files with 37 additions and 35 deletions
|
@ -472,9 +472,9 @@ static VALUE
|
|||
unix_s_socketpair(int argc, VALUE *argv, VALUE klass)
|
||||
{
|
||||
VALUE domain, type, protocol;
|
||||
domain = INT2FIX(PF_UNIX);
|
||||
VALUE args[3];
|
||||
|
||||
domain = INT2FIX(PF_UNIX);
|
||||
rb_scan_args(argc, argv, "02", &type, &protocol);
|
||||
if (argc == 0)
|
||||
type = INT2FIX(SOCK_STREAM);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue