netdev-bsd: Don't assume 'struct netdev' has offset 0.
authorBen Pfaff <blp@nicira.com>
Fri, 2 Aug 2013 19:19:49 +0000 (12:19 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 8 Aug 2013 06:40:31 +0000 (23:40 -0700)
commit9da7ae1298d570a5170515cfcf3356270541d8ad
tree1d01d9723804c0585f053b52815026b52f6e6091
parent2b906eca2a06b2d351118041bc9a7b8d118eb626
netdev-bsd: Don't assume 'struct netdev' has offset 0.

The data items returned by netdev_get_devices() are "struct netdev *"s.
The code fixed up by this commit used them as "struct netdev_bsd *",
which happens to work because struct netdev happens to be at offset 0 in
each struct but it's better to do a proper cast in case someday
struct netdev gets moved to a nonzero offset.

Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/netdev-bsd.c