Index: src/exceptions/OFBindFailedException.m ================================================================== --- src/exceptions/OFBindFailedException.m +++ src/exceptions/OFBindFailedException.m @@ -29,27 +29,27 @@ OF_UNRECOGNIZED_SELECTOR } + (instancetype)exceptionWithHost: (OFString *)host port: (uint16_t)port - socket: (id)socket + socket: (id)sock errNo: (int)errNo { return [[[self alloc] initWithHost: host port: port - socket: socket + socket: sock errNo: errNo] autorelease]; } + (instancetype)exceptionWithPort: (uint16_t)port packetType: (uint8_t)packetType - socket: (id)socket + socket: (id)sock errNo: (int)errNo { return [[[self alloc] initWithPort: port packetType: packetType - socket: socket + socket: sock errNo: errNo] autorelease]; } - (instancetype)init { @@ -56,19 +56,19 @@ OF_INVALID_INIT_METHOD } - (instancetype)initWithHost: (OFString *)host port: (uint16_t)port - socket: (id)socket + socket: (id)sock errNo: (int)errNo { self = [super init]; @try { _host = [host copy]; _port = port; - _socket = [socket retain]; + _socket = [sock retain]; _errNo = errNo; } @catch (id e) { [self release]; @throw e; } @@ -76,19 +76,19 @@ return self; } - (instancetype)initWithPort: (uint16_t)port packetType: (uint8_t)packetType - socket: (id)socket + socket: (id)sock errNo: (int)errNo { self = [super init]; @try { _port = port; _packetType = packetType; - _socket = [socket retain]; + _socket = [sock retain]; _errNo = errNo; } @catch (id e) { [self release]; @throw e; }