aboutsummaryrefslogtreecommitdiff
path: root/tests/sockets
diff options
context:
space:
mode:
authorAnthony Pesch <inolen@gmail.com>2013-08-23 16:23:54 -0700
committerAnthony Pesch <inolen@gmail.com>2013-08-23 16:24:11 -0700
commit0a313694131c133f73d85bc0c8273a9e4a68f99a (patch)
tree304ad77049b45b35a19d9151e3706b046bcc9199 /tests/sockets
parent7b16e073d686226dece702dc2228ed8fb522c24f (diff)
minor fix to send in partial sockets test
Diffstat (limited to 'tests/sockets')
-rw-r--r--tests/sockets/test_sockets_partial_server.c3
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);