git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use ovs_assert instead of assert
[sliver-openvswitch.git]
/
lib
/
list.c
diff --git
a/lib/list.c
b/lib/list.c
index
804a7e5
..
fd06b81
100644
(file)
--- a/
lib/list.c
+++ b/
lib/list.c
@@
-15,7
+15,6
@@
*/
#include <config.h>
#include "list.h"
*/
#include <config.h>
#include "list.h"
-#include <assert.h>
/* Initializes 'list' as an empty list. */
void
/* Initializes 'list' as an empty list. */
void
@@
-138,7
+137,7
@@
list_front(const struct list *list_)
{
struct list *list = CONST_CAST(struct list *, list_);
{
struct list *list = CONST_CAST(struct list *, list_);
- assert(!list_is_empty(list));
+
ovs_
assert(!list_is_empty(list));
return list->next;
}
return list->next;
}
@@
-149,7
+148,7
@@
list_back(const struct list *list_)
{
struct list *list = CONST_CAST(struct list *, list_);
{
struct list *list = CONST_CAST(struct list *, list_);
- assert(!list_is_empty(list));
+
ovs_
assert(!list_is_empty(list));
return list->prev;
}
return list->prev;
}