Update method signatures that have error objects

This commit is contained in:
Sergey Abramchuk
2018-02-02 11:40:53 +03:00
parent 4a951f626e
commit 82a42eddc3
6 changed files with 32 additions and 27 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ static void SocketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData
[bridge writePackets:@[packet] toPacketFlow:bridge.packetFlow];
}
- (BOOL)configureSocketsWithError:(NSError **)error {
- (BOOL)configureSocketsWithError:(NSError * __autoreleasing *)error {
int sockets[2];
if (socketpair(PF_LOCAL, SOCK_DGRAM, IPPROTO_IP, sockets) == -1) {
if (error) {
@@ -90,7 +90,7 @@ static void SocketCallback(CFSocketRef socket, CFSocketCallBackType type, CFData
return YES;
}
- (BOOL)configureOptionsForSocket:(CFSocketRef)socket error:(NSError **)error {
- (BOOL)configureOptionsForSocket:(CFSocketRef)socket error:(NSError * __autoreleasing *)error {
CFSocketNativeHandle socketHandle = CFSocketGetNative(socket);
int buf_value = 65536;