ofpbuf: Make offset calculation more consistent.
authorJarno Rajahalme <jarno@ovn.org>
Mon, 7 Mar 2016 19:00:44 +0000 (11:00 -0800)
committerJarno Rajahalme <jarno@ovn.org>
Mon, 7 Mar 2016 19:00:44 +0000 (11:00 -0800)
commitb1b401391a910a72b6d683712139084ae1025e1c
tree62cf75eaf2c886c01cc3f638188538be7f7f869e
parent674da62d386c17b84d88555cd57743e2a58aa766
ofpbuf: Make offset calculation more consistent.

Use the same method of offset calculation in
ofpbuf_clone_with_headroom() as in ofpbuf_resize__().

Signed-off-by: Jarno Rajahalme <jarno@ovn.org>
Acked-by: Joe Stringer <joe@ovn.org>
lib/ofpbuf.c