diff options
author | Anthony Pesch <inolen@gmail.com> | 2013-08-23 16:23:54 -0700 |
---|---|---|
committer | Anthony Pesch <inolen@gmail.com> | 2013-08-23 16:24:11 -0700 |
commit | 0a313694131c133f73d85bc0c8273a9e4a68f99a (patch) | |
tree | 304ad77049b45b35a19d9151e3706b046bcc9199 /tests/sockets | |
parent | 7b16e073d686226dece702dc2228ed8fb522c24f (diff) |
minor fix to send in partial sockets test
Diffstat (limited to 'tests/sockets')
-rw-r--r-- | tests/sockets/test_sockets_partial_server.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/sockets/test_sockets_partial_server.c b/tests/sockets/test_sockets_partial_server.c index 21096552..44ad40a3 100644 --- a/tests/sockets/test_sockets_partial_server.c +++ b/tests/sockets/test_sockets_partial_server.c @@ -38,13 +38,12 @@ void do_send(int sockfd) { int i; int res; char *buffer; - struct sockaddr_in addr; socklen_t addrlen; for (i = 0; i < sizeof(buffers) / sizeof(char*); i++) { buffer = buffers[i]; - res = sendto(sockfd, buffer, strlen(buffer), 0, (struct sockaddr *)&addr, sizeof(addr)); + res = send(sockfd, buffer, strlen(buffer), 0); if (res == -1) { perror("send failed"); exit(EXIT_FAILURE); |