mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* include/ruby/ruby.h: $SAFE=3 is now obsolete.
* ext/socket/init.c, ext/socket/socket.c, ext/socket/tcpsocket.c ext/socket/udpsocket.c, gc.c, object.c, re.c, safe.c: removed code for $SAFE=3 * bootstraptest/test_method.rb, test/erb/test_erb.rb, test/ruby/test_dir.rb test/ruby/test_file.rb, test/ruby/test_method.rb, test/ruby/test_regexp.rb test/ruby/test_thread.rb: remove tests for $SAFE=3 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3759dfa23e
commit
bbf440c90b
17 changed files with 23 additions and 100 deletions
|
@ -30,7 +30,6 @@ udp_init(int argc, VALUE *argv, VALUE sock)
|
|||
int family = AF_INET;
|
||||
int fd;
|
||||
|
||||
rb_secure(3);
|
||||
if (rb_scan_args(argc, argv, "01", &arg) == 1) {
|
||||
family = rsock_family_arg(arg);
|
||||
}
|
||||
|
@ -85,7 +84,6 @@ udp_connect(VALUE sock, VALUE host, VALUE port)
|
|||
struct udp_arg arg;
|
||||
VALUE ret;
|
||||
|
||||
rb_secure(3);
|
||||
arg.res = rsock_addrinfo(host, port, SOCK_DGRAM, 0);
|
||||
GetOpenFile(sock, fptr);
|
||||
arg.fd = fptr->fd;
|
||||
|
@ -114,7 +112,6 @@ udp_bind(VALUE sock, VALUE host, VALUE port)
|
|||
struct rb_addrinfo *res0;
|
||||
struct addrinfo *res;
|
||||
|
||||
rb_secure(3);
|
||||
res0 = rsock_addrinfo(host, port, SOCK_DGRAM, 0);
|
||||
GetOpenFile(sock, fptr);
|
||||
for (res = res0->ai; res; res = res->ai_next) {
|
||||
|
@ -267,4 +264,3 @@ rsock_init_udpsocket(void)
|
|||
rb_define_method(rb_cUDPSocket, "send", udp_send, -1);
|
||||
rb_define_method(rb_cUDPSocket, "recvfrom_nonblock", udp_recvfrom_nonblock, -1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue