mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
(initialize): return void.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@121 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ace8226d35
commit
1527e933db
1 changed files with 2 additions and 3 deletions
|
@ -77,14 +77,13 @@ name_to_port_number (const char *name)
|
||||||
|
|
||||||
@implementation SocketPort
|
@implementation SocketPort
|
||||||
|
|
||||||
+ initialize
|
+ (void) initialize
|
||||||
{
|
{
|
||||||
if ([self class] == [SocketPort class])
|
if ([self class] == [SocketPort class])
|
||||||
{
|
{
|
||||||
socketPortList = [[List alloc] init];
|
socketPortList = [[List alloc] init];
|
||||||
socketPortListGate = [Lock new];
|
socketPortListGate = [Lock new];
|
||||||
}
|
}
|
||||||
return self;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
+ setDebug: (BOOL)f
|
+ setDebug: (BOOL)f
|
||||||
|
@ -276,7 +275,7 @@ s1.sin_addr.s_addr == s2.sin_addr.s_addr)
|
||||||
int r;
|
int r;
|
||||||
sockport_t a;
|
sockport_t a;
|
||||||
|
|
||||||
if (![remote isKindOf:[SocketPort class]])
|
if (![remote isKindOfClass:[SocketPort class]])
|
||||||
[self error:"Trying to send to a non-SocketPort"];
|
[self error:"Trying to send to a non-SocketPort"];
|
||||||
a = [(SocketPort*)remote sockPort];
|
a = [(SocketPort*)remote sockPort];
|
||||||
if (socket_port_debug)
|
if (socket_port_debug)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue