Commit e219ab95 authored by Pekka Pessi's avatar Pekka Pessi

Removed warnings on BSDish systems.

darcs-hash:20060224082941-65a35-1829d0afd2b708e79d70d2a777ce00ab07c15e82.gz
parent e54e73cf
......@@ -237,7 +237,7 @@ int su_vsend(su_socket_t s, su_iovec_t const iov[], int iovlen, int flags,
{
struct msghdr hdr[1] = {{0}};
hdr->msg_name = (struct sockaddr *)&su->su_sa;
hdr->msg_name = (void *)su;
hdr->msg_namelen = sulen;
hdr->msg_iov = (struct iovec *)iov;
hdr->msg_iovlen = iovlen;
......@@ -251,7 +251,7 @@ int su_vrecv(su_socket_t s, su_iovec_t iov[], int iovlen, int flags,
struct msghdr hdr[1] = {{0}};
int retval;
hdr->msg_name = (struct sockaddr *)&su->su_sa;
hdr->msg_name = (void *)su;
if (su && sulen)
hdr->msg_namelen = *sulen;
hdr->msg_iov = (struct iovec *)iov;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment