Comment 2 for bug 1115449

Revision history for this message
Philipp Hagemeister (phihag) wrote :

@kelly-h For me, it fails with that patch as well, with

ntrack-libnl.c: In function ‘update_connectivity’:
ntrack-libnl.c:544:3: error: passing argument 1 of ‘nl_object_get_id_attrs’ from incompatible pointer type [-Werror]
   if ((diff_bits = (nl_object_get_id_attrs(&route_obj_ops) | ROUTE_ATTR_OIF
   ^
In file included from /usr/include/libnl3/netlink/netlink.h:34:0,
                 from ntrack-libnl.c:35:
/usr/include/libnl3/netlink/object.h:67:12: note: expected ‘struct nl_object *’ but argument is of type ‘struct nl_object_ops *’
 uint32_t nl_object_get_id_attrs(struct nl_object *obj);
            ^

At least to me, this error looks justified, or am I missing something?