projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid pointer arithmetic on void*.
[openvswitch]
/
lib
/
dhcp-client.c
diff --git
a/lib/dhcp-client.c
b/lib/dhcp-client.c
index bafa19d00e2a1ffaa0f2f2a049b504e77e0f5d29..f62ce5bb79f9d230dbdfc71606483f2e4ff9fd8c 100644
(file)
--- a/
lib/dhcp-client.c
+++ b/
lib/dhcp-client.c
@@
-914,7
+914,7
@@
do_receive_msg(struct dhclient *cli, struct dhcp_msg *msg)
continue;
}
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",
error = dhcp_parse(msg, &b);
if (!error) {
VLOG_DBG_RL(&rl, "received %s",