]> git.proxmox.com Git - qemu.git/blobdiff - slirp/bootp.c
64 bit fixes (initial patch by Gwenole Beauchesne)
[qemu.git] / slirp / bootp.c
index 56caf707eb92c9a0b26c8ae69e0cf0c496a55ab9..9f0652fd6317633ae576f73c6096bf28f70b346a 100644 (file)
@@ -238,7 +238,7 @@ static void bootp_reply(struct bootp_t *bp)
 
 void bootp_input(struct mbuf *m)
 {
-    struct bootp_t *bp = (struct bootp_t *)m->m_data;
+    struct bootp_t *bp = mtod(m, struct bootp_t *);
 
     if (bp->bp_op == BOOTP_REQUEST) {
         bootp_reply(bp);