netdev-windows: Fix broken compilation.
authorGurucharan Shetty <shettyg@nicira.com>
Thu, 5 Mar 2015 15:30:12 +0000 (07:30 -0800)
committerGurucharan Shetty <gshetty@nicira.com>
Thu, 5 Mar 2015 17:29:51 +0000 (09:29 -0800)
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 <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/netdev-windows.c

index c67aaeb..1fc1da7 100644 (file)
@@ -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);