Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
svlobanov committed Aug 27, 2024
1 parent a4196b4 commit bc08d10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions accel-pppd/logs/log_tcp.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ static int log_tcp_connect(struct triton_md_handler_t *h)
{
struct tcp_target_t *t = container_of(h, typeof(*t), hnd);

if (connect(t->hnd.fd, &t->addr, sizeof(t->addr))) {
if (connect(t->hnd.fd, (struct sockaddr*)&t->addr, sizeof(t->addr))) {
if (errno == EAGAIN)
return 0;
if (errno == EINPROGRESS)
Expand Down Expand Up @@ -216,7 +216,7 @@ static void start_connect(struct tcp_target_t *t)
return;
}

if (connect(t->hnd.fd, &t->addr, sizeof(t->addr))) {
if (connect(t->hnd.fd, (struct sockaddr*)&t->addr, sizeof(t->addr))) {
if (errno != EINPROGRESS) {
log_emerg("log-tcp: connect: %s\n", strerror(errno));
close(t->hnd.fd);
Expand Down

0 comments on commit bc08d10

Please sign in to comment.