mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/unixsocket.c (unix_send_io): Suppress a warning by clang.
(unix_recv_io): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40324 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da91385f2c
commit
a294d45808
2 changed files with 9 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Apr 16 23:07:12 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/unixsocket.c (unix_send_io): Suppress a warning by clang.
|
||||
(unix_recv_io): Ditto.
|
||||
|
||||
Tue Apr 16 12:27:00 2013 Zachary Scott <zachary@zacharyscott.net>
|
||||
|
||||
* ext/sdbm/init.c: Fix comment indentation, by windwiny [Fixes GH-277]
|
||||
|
|
|
@ -208,9 +208,9 @@ unix_send_io(VALUE sock, VALUE val)
|
|||
char buf[1];
|
||||
|
||||
#if FD_PASSING_BY_MSG_CONTROL
|
||||
struct {
|
||||
union {
|
||||
struct cmsghdr hdr;
|
||||
char pad[8+sizeof(int)+8];
|
||||
char pad[sizeof(struct cmsghdr)+8+sizeof(int)+8];
|
||||
} cmsg;
|
||||
#endif
|
||||
|
||||
|
@ -303,9 +303,9 @@ unix_recv_io(int argc, VALUE *argv, VALUE sock)
|
|||
|
||||
int fd;
|
||||
#if FD_PASSING_BY_MSG_CONTROL
|
||||
struct {
|
||||
union {
|
||||
struct cmsghdr hdr;
|
||||
char pad[8+sizeof(int)+8];
|
||||
char pad[sizeof(struct cmsghdr)+8+sizeof(int)+8];
|
||||
} cmsg;
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue