mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/socket.c (unix_sysaccept): typo fixed.
* ext/socket/socket.c (sock_connect): remove an unused local variable tmpaddr. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4ee699999d
commit
e3cd29bc63
3 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
Mon Jun 19 13:22:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/socket/socket.c (unix_sysaccept): typo fixed.
|
||||
|
||||
* ext/socket/socket.c (sock_connect): remove an unused local
|
||||
variable tmpaddr.
|
||||
|
||||
Mon Jun 19 02:10:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* ext/socket/socket.c (tcp_accept_nonblock): forgot to remove
|
||||
|
|
|
@ -2090,7 +2090,7 @@ unix_sysaccept(VALUE sock)
|
|||
|
||||
GetOpenFile(sock, fptr);
|
||||
fromlen = sizeof(struct sockaddr_un);
|
||||
s_accept(0, fptr->fd, (struct sockaddr*)&from, &fromlen);
|
||||
return s_accept(0, fptr->fd, (struct sockaddr*)&from, &fromlen);
|
||||
}
|
||||
|
||||
#ifdef HAVE_SYS_UN_H
|
||||
|
@ -2391,7 +2391,6 @@ sock_connect(VALUE sock, VALUE addr)
|
|||
{
|
||||
OpenFile *fptr;
|
||||
int fd, n;
|
||||
volatile VALUE tmpaddr;
|
||||
|
||||
StringValue(addr);
|
||||
addr = rb_str_new4(addr);
|
||||
|
|
|
@ -25,6 +25,7 @@ class Integer
|
|||
end
|
||||
|
||||
def prime_division
|
||||
raise ZeroDivisionError if self == 0
|
||||
ps = Prime.new
|
||||
value = self
|
||||
pv = []
|
||||
|
|
Loading…
Reference in a new issue