summaryrefslogtreecommitdiff
path: root/ext/socket/tcpserver.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-28 08:14:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-28 08:14:13 +0000
commit4822d20cc55d54d0c3cb190fdcb343976db64901 (patch)
tree5c6d684e1615f4c0559fff9480ed25f2c3e5c887 /ext/socket/tcpserver.c
parent790d6071c6d0d2c677b01779fecb891d64095ded (diff)
* ext/socket: fixed types.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/tcpserver.c')
-rw-r--r--ext/socket/tcpserver.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/socket/tcpserver.c b/ext/socket/tcpserver.c
index 282bd60..7bb02d9 100644
--- a/ext/socket/tcpserver.c
+++ b/ext/socket/tcpserver.c
@@ -51,7 +51,7 @@ tcp_accept(VALUE sock)
socklen_t fromlen;
GetOpenFile(sock, fptr);
- fromlen = sizeof(from);
+ fromlen = (socklen_t)sizeof(from);
return rsock_s_accept(rb_cTCPSocket, fptr->fd,
(struct sockaddr*)&from, &fromlen);
}
@@ -97,7 +97,7 @@ tcp_accept_nonblock(VALUE sock)
socklen_t fromlen;
GetOpenFile(sock, fptr);
- fromlen = sizeof(from);
+ fromlen = (socklen_t)sizeof(from);
return rsock_s_accept_nonblock(rb_cTCPSocket, fptr,
(struct sockaddr *)&from, &fromlen);
}
@@ -124,7 +124,7 @@ tcp_sysaccept(VALUE sock)
socklen_t fromlen;
GetOpenFile(sock, fptr);
- fromlen = sizeof(from);
+ fromlen = (socklen_t)sizeof(from);
return rsock_s_accept(0, fptr->fd, (struct sockaddr*)&from, &fromlen);
}