mirror of
https://github.com/openvswitch/ovs
synced 2025-08-30 22:05:19 +00:00
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>
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
|
||||
#include <config.h>
|
||||
#include "classifier.h"
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <netinet/in.h>
|
||||
#include "byte-order.h"
|
||||
@@ -208,7 +207,7 @@ void
|
||||
classifier_insert(struct classifier *cls, struct cls_rule *rule)
|
||||
{
|
||||
struct cls_rule *displaced_rule = classifier_replace(cls, rule);
|
||||
assert(!displaced_rule);
|
||||
ovs_assert(!displaced_rule);
|
||||
}
|
||||
|
||||
/* Removes 'rule' from 'cls'. It is the caller's responsibility to destroy
|
||||
|
Reference in New Issue
Block a user