([Connection +newForInPort:outPort:ancestorConnection:]): Cast NEWCONN

to avoid warning.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2322 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Andrew McCallum 1997-05-03 20:37:13 +00:00
parent d2e0aac4e5
commit 6e7a73a93a

View file

@ -34,6 +34,7 @@
#include <gnustep/base/preface.h>
#include <gnustep/base/Connection.h>
#include <Foundation/NSConnection.h>
#include <gnustep/base/Proxy.h>
#include <gnustep/base/ConnectedCoder.h>
#include <gnustep/base/TcpPort.h>
@ -460,7 +461,7 @@ static int messages_received_count;
/* Here is the OpenStep version, which just allows the returning of BOOL */
if ([[ancestor delegate] respondsTo:@selector(makeNewConnection:sender:)])
{
if (![[ancestor delegate] makeNewConnection: newConn
if (![[ancestor delegate] makeNewConnection: (NSConnection*)newConn
sender: [ancestor delegate]])
{
[newConn release];