style problems on mac
authorNathan S. Evans <evans@in.tum.de>
Fri, 4 Feb 2011 12:19:39 +0000 (12:19 +0000)
committerNathan S. Evans <evans@in.tum.de>
Fri, 4 Feb 2011 12:19:39 +0000 (12:19 +0000)
src/vpn/gnunet-daemon-vpn.c

index 8424e988722bd36f5757f43d583afdaf30b6e1ab..ce3da8ccd01c1fb685468d6a3e28b17d77c51671 100644 (file)
@@ -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));