raw: Use cast to discard const qualifier.
authorRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Sat, 21 May 2011 14:35:10 +0000 (17:35 +0300)
committerRazvan Deaconescu <razvan.deaconescu@cs.pub.ro>
Sat, 21 May 2011 14:35:10 +0000 (17:35 +0300)
src/raw/swift_raw.c

index 937c62d..f4850f1 100644 (file)
@@ -155,7 +155,7 @@ ssize_t sw_sendto(int __fd, __const void *__buf, size_t __n,
  */
        
        /* Specify the components of the message in an "iovec".   */
-       __iov[0].iov_base = __buf;
+       __iov[0].iov_base = (void *) __buf;
        __iov[0].iov_len = __n;
        
        /* The message header contains parameters for sendmsg.    */