From b6734ce2cb10ded947007adffda76ac609ece10c Mon Sep 17 00:00:00 2001 From: Christian Mehlis Date: Sat, 18 Jan 2014 01:12:38 +0100 Subject: [PATCH] socket: fix warning of void pointer arithmetic --- sys/net/transport_layer/destiny/socket.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/net/transport_layer/destiny/socket.c b/sys/net/transport_layer/destiny/socket.c index f5937431cd..54edb69085 100644 --- a/sys/net/transport_layer/destiny/socket.c +++ b/sys/net/transport_layer/destiny/socket.c @@ -770,7 +770,7 @@ int32_t destiny_socket_send(int s, const void *buf, uint32_t len, int flags) } else { memcpy(&send_buffer[IPV6_HDR_LEN + TCP_HDR_LEN], - buf + total_sent_bytes, len - total_sent_bytes); + (uint8_t *) buf + total_sent_bytes, len - total_sent_bytes); sent_bytes = len - total_sent_bytes; total_sent_bytes = len; } @@ -785,7 +785,7 @@ int32_t destiny_socket_send(int s, const void *buf, uint32_t len, int flags) } else { memcpy(&send_buffer[IPV6_HDR_LEN + TCP_HDR_LEN], - buf + total_sent_bytes, len - total_sent_bytes); + (uint8_t *) buf + total_sent_bytes, len - total_sent_bytes); sent_bytes = len - total_sent_bytes; total_sent_bytes = len; }