Changes in uspace/app/netecho/netecho.c [e52b4b5:c442f63] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/netecho/netecho.c
re52b4b5 rc442f63 225 225 uint8_t address_buf[sizeof(struct sockaddr_in6)]; 226 226 227 socklen_t addrlen ;227 socklen_t addrlen = sizeof(struct sockaddr_in6); 228 228 int socket_id; 229 229 ssize_t rcv_size; … … 240 240 if (type == SOCK_STREAM) { 241 241 /* Accept a socket if a stream socket is used */ 242 addrlen = sizeof(address_buf);243 242 if (verbose) 244 243 printf("accept()\n"); … … 280 279 case AF_INET6: 281 280 port = ntohs(address_in6->sin6_port); 282 address_start = (uint8_t *) &address_in6->sin6_addr.s6_addr;281 address_start = (uint8_t *) address_in6->sin6_addr.s6_addr; 283 282 break; 284 283 default:
Note:
See TracChangeset
for help on using the changeset viewer.