Differences From Artifact [19a4211bbd]:
- File src/OFUDPSocket.m — part of check-in [f836f5e65d] at 2014-02-04 21:45:30 on branch trunk — OFUDPSocket: Conform to OFCopying (user: js, size: 11363) [annotate] [blame] [check-ins using]
To Artifact [aca7fe3ad4]:
- File
src/OFUDPSocket.m
— part of check-in
[3fa37632f9]
at
2014-02-21 17:17:04
on branch trunk
— Cast return of sizeof() to socklen_t
It caused a warning about an implicit cast on OS X/PPC64. (user: js, size: 11385) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
414 415 416 417 418 419 420 | of_resolver_free(results); } if (port > 0) return port; #ifndef __wii__ | | | 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 | of_resolver_free(results); } if (port > 0) return port; #ifndef __wii__ addrLen = (socklen_t)sizeof(addr.storage); if (getsockname(_socket, (struct sockaddr*)&addr.storage, &addrLen)) { close(_socket); _socket = INVALID_SOCKET; @throw [OFBindFailedException exceptionWithHost: host port: port socket: self]; } |
︙ | ︙ | |||
447 448 449 450 451 452 453 | sender: (of_udp_socket_address_t*)sender { ssize_t ret; if (_socket == INVALID_SOCKET) @throw [OFNotConnectedException exceptionWithSocket: self]; | | | 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 | sender: (of_udp_socket_address_t*)sender { ssize_t ret; if (_socket == INVALID_SOCKET) @throw [OFNotConnectedException exceptionWithSocket: self]; sender->length = (socklen_t)sizeof(sender->address); if ((ret = recvfrom(_socket, buffer, length, 0, (struct sockaddr*)&sender->address, &sender->length)) < 0) @throw [OFReadFailedException exceptionWithObject: self requestedLength: length]; return ret; |
︙ | ︙ |