Changes in uspace/app/netecho/netecho.c [c442f63:e52b4b5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/netecho/netecho.c
rc442f63 re52b4b5 225 225 uint8_t address_buf[sizeof(struct sockaddr_in6)]; 226 226 227 socklen_t addrlen = sizeof(struct sockaddr_in6);227 socklen_t addrlen; 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); 242 243 if (verbose) 243 244 printf("accept()\n"); … … 279 280 case AF_INET6: 280 281 port = ntohs(address_in6->sin6_port); 281 address_start = (uint8_t *) address_in6->sin6_addr.s6_addr;282 address_start = (uint8_t *) &address_in6->sin6_addr.s6_addr; 282 283 break; 283 284 default:
Note:
See TracChangeset
for help on using the changeset viewer.