[ovs-dev] [bug14616 4/5] socket-util: Use CONST_CAST in send_iovec_and_fs().

Ben Pfaff blp at nicira.com
Fri Jan 11 01:23:04 UTC 2013


Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/socket-util.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/socket-util.c b/lib/socket-util.c
index d31bc76..c2f74d0 100644
--- a/lib/socket-util.c
+++ b/lib/socket-util.c
@@ -1120,7 +1120,7 @@ send_iovec_and_fds(int sock,
 
         msg.msg_name = NULL;
         msg.msg_namelen = 0;
-        msg.msg_iov = (struct iovec *) iovs;
+        msg.msg_iov = CONST_CAST(struct iovec *, iovs);
         msg.msg_iovlen = n_iovs;
         msg.msg_control = &cmsg.cm;
         msg.msg_controllen = CMSG_SPACE(n_fds * sizeof *fds);
-- 
1.7.2.5




More information about the dev mailing list