Index: /trunk/src/VBox/Devices/Network/slirp/libalias/alias_dns.c
===================================================================
--- /trunk/src/VBox/Devices/Network/slirp/libalias/alias_dns.c	(revision 22879)
+++ /trunk/src/VBox/Devices/Network/slirp/libalias/alias_dns.c	(revision 22880)
@@ -110,5 +110,5 @@
         {
             uint16_t len;
-            struct dnsmsg_answer *ans = answers;
+            struct dnsmsg_answer *ans = (struct dnsmsg_answer *)answers;
             ans->name = htons(off);
             ans->type = htons(5); /*CNAME*/
@@ -119,5 +119,5 @@
             ans->rdata_len = htons(len);
             ans->rdata[len - 1] = 0;
-            cstr2qstr(c, ans->rdata);
+            cstr2qstr(c, (char *)ans->rdata);
             off = (char *)&ans->rdata - (char *)hdr;
             off |= (0x3 << 14);
@@ -169,5 +169,5 @@
     struct udphdr *udp = NULL;
     union dnsmsg_header *hdr = NULL;
-    udp = ((char *)pip) + (pip->ip_hl << 2);
+    udp = (struct udphdr *)((char *)pip) + (pip->ip_hl << 2);
     hdr = (union dnsmsg_header *)&udp[1];
 
@@ -185,6 +185,6 @@
             qw_qname, ntohs(*qw_qtype), ntohs(*qw_qclass));
     }
-    qstr2cstr(qw_qname, cname);
-    h = gethostbyname(cname);
+    qstr2cstr(qw_qname, (char *)cname);
+    h = gethostbyname((char *)cname);
     fprintf(stderr, "cname:%s\n", cname);
     doanswer(la, hdr, qw_qname, pip, h);
@@ -195,5 +195,5 @@
     udp->uh_ulen = ntohs(htons(pip->ip_len) - (pip->ip_hl << 2));
     pip->ip_sum = 0;
-    pip->ip_sum = LibAliasInternetChecksum(la, (char *)pip, pip->ip_hl << 2);
+    pip->ip_sum = LibAliasInternetChecksum(la, (uint16_t *)pip, pip->ip_hl << 2);
     return (0);
 }
