diff options
-rw-r--r-- | common/raw.c | 4 | ||||
-rw-r--r-- | raw.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/common/raw.c b/common/raw.c index 99187e12..03458ac9 100644 --- a/common/raw.c +++ b/common/raw.c @@ -121,9 +121,9 @@ size_t send_packet (interface, packet, raw, len, to, hto) (unsigned char *)raw, len); /* Fire it off */ - iov [0].iov_base = buf; + iov [0].iov_base = (char *)buf; iov [0].iov_len = bufp; - iov [1].iov_base = (unsigned char *)raw; + iov [1].iov_base = (char *)raw; iov [1].iov_len = len; return writev(interface -> wfdesc, iov, 2); @@ -121,9 +121,9 @@ size_t send_packet (interface, packet, raw, len, to, hto) (unsigned char *)raw, len); /* Fire it off */ - iov [0].iov_base = buf; + iov [0].iov_base = (char *)buf; iov [0].iov_len = bufp; - iov [1].iov_base = (unsigned char *)raw; + iov [1].iov_base = (char *)raw; iov [1].iov_len = len; return writev(interface -> wfdesc, iov, 2); |