Avoid pointer arithmetic on void*.
[openvswitch] / lib / dhcp-client.c
index bafa19d00e2a1ffaa0f2f2a049b504e77e0f5d29..f62ce5bb79f9d230dbdfc71606483f2e4ff9fd8c 100644 (file)
@@ -914,7 +914,7 @@ do_receive_msg(struct dhclient *cli, struct dhcp_msg *msg)
             continue;
         }
 
-        ofpbuf_pull(&b, b.l7 - b.data);
+        ofpbuf_pull(&b, (char *)b.l7 - (char*)b.data);
         error = dhcp_parse(msg, &b);
         if (!error) {
             VLOG_DBG_RL(&rl, "received %s",