diff options
author | Ben Pfaff <blp@nicira.com> | 2012-11-06 13:14:55 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-01-16 16:03:37 -0800 |
commit | cb22974d773942d66da42b700b8bca0db27a0920 (patch) | |
tree | 6412724be1bfc46d7235c4e2105c279bbe20d320 /lib/vconn-provider.h | |
parent | 4749f73d12c844b318af7f45cf45e1acac9f7c08 (diff) |
Replace most uses of assert by ovs_assert.
This is a straight search-and-replace, except that I also removed #include
<assert.h> from each file where there were no assert calls left.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Ethan Jackson <ethan@nicira.com>
Diffstat (limited to 'lib/vconn-provider.h')
-rw-r--r-- | lib/vconn-provider.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/vconn-provider.h b/lib/vconn-provider.h index a26d9c55..f4e9a9e4 100644 --- a/lib/vconn-provider.h +++ b/lib/vconn-provider.h @@ -20,8 +20,8 @@ /* Provider interface to vconns, which provide a virtual connection to an * OpenFlow device. */ -#include <assert.h> #include "vconn.h" +#include "util.h" #include "openflow/openflow-common.h" /* Active virtual connection to an OpenFlow device. */ @@ -53,7 +53,7 @@ void vconn_set_local_port(struct vconn *, ovs_be16 local_port); static inline void vconn_assert_class(const struct vconn *vconn, const struct vconn_class *class) { - assert(vconn->class == class); + ovs_assert(vconn->class == class); } struct vconn_class { @@ -148,7 +148,7 @@ void pvconn_init(struct pvconn *pvconn, struct pvconn_class *class, static inline void pvconn_assert_class(const struct pvconn *pvconn, const struct pvconn_class *class) { - assert(pvconn->class == class); + ovs_assert(pvconn->class == class); } struct pvconn_class { |