mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31286 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b0b4d1e1be
commit
60c9ffa1ef
1 changed files with 7 additions and 6 deletions
|
@ -380,12 +380,12 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
|
||||||
case ET_RPORT:
|
case ET_RPORT:
|
||||||
{
|
{
|
||||||
id port = info->receiver;
|
id port = info->receiver;
|
||||||
|
|
||||||
|
if ([port respondsToSelector: @selector(getFds:count:)])
|
||||||
|
{
|
||||||
int port_fd_count = 128; // FIXME
|
int port_fd_count = 128; // FIXME
|
||||||
int port_fd_array[port_fd_count];
|
int port_fd_array[port_fd_count];
|
||||||
|
|
||||||
if ([port respondsToSelector:
|
|
||||||
@selector(getFds:count:)])
|
|
||||||
{
|
|
||||||
[port getFds: port_fd_array
|
[port getFds: port_fd_array
|
||||||
count: &port_fd_count];
|
count: &port_fd_count];
|
||||||
NSDebugMLLog(@"NSRunLoop",
|
NSDebugMLLog(@"NSRunLoop",
|
||||||
|
@ -395,7 +395,8 @@ static void setPollfd(int fd, int event, GSRunLoopCtxt *ctxt)
|
||||||
fd = port_fd_array[port_fd_count];
|
fd = port_fd_array[port_fd_count];
|
||||||
setPollfd(fd, POLLIN, self);
|
setPollfd(fd, POLLIN, self);
|
||||||
NSMapInsert(_rfdMap,
|
NSMapInsert(_rfdMap,
|
||||||
(void*)(intptr_t)port_fd_array[port_fd_count], info);
|
(void*)(intptr_t)port_fd_array[port_fd_count],
|
||||||
|
info);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue