]> Zhao Yanbai Git Server - minix.git/commitdiff
dhcpd: fix newly introduced ACK warnings
authorDavid van Moolenbroek <david@minix3.org>
Sat, 16 Apr 2011 11:13:31 +0000 (11:13 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Sat, 16 Apr 2011 11:13:31 +0000 (11:13 +0000)
commands/dhcpd/dhcpd.c

index 50c1a62afb4f5877c1567a9e253d525cef878b51..6c780b578db4c860d2918b1f3584cc2a9b366e78 100644 (file)
@@ -965,7 +965,7 @@ main:
                if (!(np->flags & NF_BOUND)) {
                    /* Rebind over Ethernet. */
                    udp2ether(bp, np);
-                   if (sendpacket(np, (lwip ? bp->ip : bp->eth), 
+                   if (sendpacket(np, (lwip ? bp->ip : (void *) bp->eth), 
                                        (lwip ? 0 : sizeof(eth_hdr_t)) + sizeof(ip_hdr_t)
                                        + sizeof(udp_hdr_t) + sizeof(dhcp_t))) {
                        if (debug >= 1) {
@@ -1017,8 +1017,8 @@ main:
                if (!opendev(np, FT_ETHERNET, 0)) continue;
                get_buf(&np->fdp->bp);
                r= asyn_read(&asyn, np->fdp->fd,
-                               lwip ? np->fdp->bp->ip : np->fdp->bp->eth,
-                               lwip ? BUF_IP_SIZE : BUF_ETH_SIZE);
+                       lwip ? np->fdp->bp->ip : (void *) np->fdp->bp->eth,
+                       lwip ? BUF_IP_SIZE : BUF_ETH_SIZE);
            } else {
                if (!opendev(np, FT_BOOTPC, 0)) continue;
                get_buf(&np->fdp->bp);