diff options
Diffstat (limited to 'tcpip')
-rw-r--r-- | tcpip/ttylinkd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcpip/ttylinkd.c b/tcpip/ttylinkd.c index 71a63c5..0412597 100644 --- a/tcpip/ttylinkd.c +++ b/tcpip/ttylinkd.c @@ -501,7 +501,7 @@ static int send_control(int skt, struct in_addr addr, CTL_MSG msg, sin.sin_family = AF_INET; sin.sin_port = talk_port; - if (sendto(skt, (char*)&msg, sizeof(msg), 0, (struct sockaddr*)&sin, sizeof(sin)) != sizeof(msg)) + if (sendto(skt, &msg, sizeof(msg), 0, (struct sockaddr *)&sin, sizeof(sin)) != sizeof(msg)) { syslog(LOG_DAEMON | LOG_ERR, "send_control(): sendto failed (%m)."); return -1; |