X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fnetdev-tunnel.c;h=9a7c3581df03b1103314ae88877f44f1531191e9;hb=ea7655d9f9d38a3af7250de8ba0b89115b5f4a5e;hp=a44095dc3f41bc569071224c9c99c352a6e168df;hpb=d1673b006d53fdea72c0744e835362ed1917f879;p=sliver-openvswitch.git diff --git a/lib/netdev-tunnel.c b/lib/netdev-tunnel.c index a44095dc3..9a7c3581d 100644 --- a/lib/netdev-tunnel.c +++ b/lib/netdev-tunnel.c @@ -73,7 +73,7 @@ is_tunnel_class(const struct netdev_class *class) static struct netdev_dev_tunnel * netdev_dev_tunnel_cast(const struct netdev_dev *netdev_dev) { - assert(is_tunnel_class(netdev_dev_get_class(netdev_dev))); + ovs_assert(is_tunnel_class(netdev_dev_get_class(netdev_dev))); return CONTAINER_OF(netdev_dev, struct netdev_dev_tunnel, netdev_dev); } @@ -81,7 +81,7 @@ static struct netdev_tunnel * netdev_tunnel_cast(const struct netdev *netdev) { struct netdev_dev *netdev_dev = netdev_get_dev(netdev); - assert(is_tunnel_class(netdev_dev_get_class(netdev_dev))); + ovs_assert(is_tunnel_class(netdev_dev_get_class(netdev_dev))); return CONTAINER_OF(netdev, struct netdev_tunnel, netdev); }