Fix compilation with GCC

This commit is contained in:
Jonathan Schleifer 2019-01-23 21:23:45 +01:00
parent 8781264a61
commit f3b93d7379
No known key found for this signature in database
GPG key ID: 79D21189A2D4708D

View file

@ -341,7 +341,7 @@
@throw [OFAlreadyConnectedException exception];
_socket = [[OFTCPSocket alloc] init];
[_socket setDelegate: self];
[(OFTCPSocket *)_socket setDelegate: self];
if (_server != nil)
[_socket asyncConnectToHost: _server
@ -763,7 +763,7 @@
[newSock startTLSWithExpectedHost: nil];
[_socket release];
_socket = newSock;
[_socket setDelegate: self];
[(OFTCPSocket *)_socket setDelegate: self];
_encrypted = true;