From: Nathan S. Evans Date: Fri, 4 Feb 2011 12:19:39 +0000 (+0000) Subject: style problems on mac X-Git-Tag: initial-import-from-subversion-38251~19188 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=40374d3b28a13cf13de146effafe6aa055d4f5ac;p=oweals%2Fgnunet.git style problems on mac --- diff --git a/src/vpn/gnunet-daemon-vpn.c b/src/vpn/gnunet-daemon-vpn.c index 8424e9887..ce3da8ccd 100644 --- a/src/vpn/gnunet-daemon-vpn.c +++ b/src/vpn/gnunet-daemon-vpn.c @@ -404,8 +404,8 @@ receive_udp_back (void *cls, struct GNUNET_MESH_Tunnel* tunnel, unsigned int i; for (i = 0; i < 16; i++) pkt6->ip6_hdr.sadr[15-i] = addr[i]; - - memcpy(pkt6->ip6_hdr.dadr, (unsigned char[]){0x12, 0x34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}, 16); + char temp_addr[] = {0x12, 0x34, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1}; + memcpy(pkt6->ip6_hdr.dadr, temp_addr, 16); memcpy(&pkt6->udp_hdr, pkt, ntohs(pkt->len));