From d4a2b2e2efbb6e66497a04463430da8776d0ccde Mon Sep 17 00:00:00 2001 From: richard Date: Thu, 17 Jun 1999 11:02:32 +0000 Subject: [PATCH] more tidying git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@4417 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 2 ++ Source/Port.m | 2 +- Source/TcpPort.m | 16 +++++++--------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index abd04a8d2..031f4e652 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,8 @@ Thu Jun 17 12:00:00 1999 Richard Frith-Macdonald * Source/NSPort.m: ditto * Source/NSPortNameServer.m: ditto * Source/NSSerializer.m: ditto + * Source/Port.m: ditto + * Source/TcpPort.m: ditto Mon Jun 14 10:20:00 1999 Richard Frith-Macdonald diff --git a/Source/Port.m b/Source/Port.m index 0d887fe6d..c8ffc067a 100644 --- a/Source/Port.m +++ b/Source/Port.m @@ -24,7 +24,7 @@ #include #include #include /* for Coding protocol in Object category */ -#include +#include #include @implementation Port diff --git a/Source/TcpPort.m b/Source/TcpPort.m index 2933f2ba7..1111eab0c 100644 --- a/Source/TcpPort.m +++ b/Source/TcpPort.m @@ -35,13 +35,12 @@ #include #include -#include -#include -#include -#include +#include +#include +#include +#include #include #include -#include #include #include #include @@ -1273,8 +1272,7 @@ static NSMapTable* port_number_2_port; NSNextMapEnumeratorPair (&me, (void*)&sock, (void*)&out_port); i++) out_ports[i] = out_port; - return [[[Array alloc] initWithObjects: out_ports count: count] - autorelease]; + return [NSArray arrayWithObjects: out_ports count: count]; } - (unsigned) numberOfConnectedOutPorts @@ -1372,7 +1370,7 @@ static NSMapTable* port_number_2_port; if (debug_tcp_port) NSLog(@"%s: Accepted connection from\n %@.\n", object_get_class_name (self), [op description]); - [NotificationDispatcher + [[NSNotificationCenter defaultCenter] postNotificationName: InPortAcceptedClientNotification object: self userInfo: op]; @@ -1554,7 +1552,7 @@ static NSMapTable* port_number_2_port; #if 0 /* xxx Should this be earlier, so that the notification recievers can still use _client_sock_2_out_port before the out port P is removed? */ - [NotificationDispatcher + [[NSNotificationCenter defaultCenter] postNotificationName: InPortClientBecameInvalidNotification object: self userInfo: p];