From: Gurucharan Shetty Date: Thu, 5 Mar 2015 15:30:12 +0000 (-0800) Subject: netdev-windows: Fix broken compilation. X-Git-Tag: v2.4.0~491 X-Git-Url: http://git.cascardo.eti.br/?a=commitdiff_plain;h=0c87e03dff7fc61b9d066beb42511846354ad35b;p=cascardo%2Fovs.git netdev-windows: Fix broken compilation. Commit 6fd6ed71cb9f(ofpbuf: Simplify ofpbuf API.) removed ofpbuf_size and ofpbuf_data. They still had reference from netdev-windows. Fix them. Signed-off-by: Gurucharan Shetty Acked-by: Ben Pfaff --- diff --git a/lib/netdev-windows.c b/lib/netdev-windows.c index c67aaebcd..1fc1da710 100644 --- a/lib/netdev-windows.c +++ b/lib/netdev-windows.c @@ -232,7 +232,7 @@ netdev_windows_netdev_from_ofpbuf(struct netdev_windows_netdev_info *info, netdev_windows_info_init(info); - ofpbuf_use_const(&b, ofpbuf_data(buf), ofpbuf_size(buf)); + ofpbuf_use_const(&b, buf->data, buf->size); nlmsg = ofpbuf_try_pull(&b, sizeof *nlmsg); genl = ofpbuf_try_pull(&b, sizeof *genl); ovs_header = ofpbuf_try_pull(&b, sizeof *ovs_header);