X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fshash.c;h=4285c07451fba0b29b16efb90293d5928e134bca;hb=cb22974d773942d66da42b700b8bca0db27a0920;hp=1cf7d6e1631b9300637f0c74ebfbc61e0f6f3f50;hpb=4749f73d12c844b318af7f45cf45e1acac9f7c08;p=sliver-openvswitch.git diff --git a/lib/shash.c b/lib/shash.c index 1cf7d6e16..4285c0745 100644 --- a/lib/shash.c +++ b/lib/shash.c @@ -16,7 +16,6 @@ #include #include "shash.h" -#include #include "hash.h" static struct shash_node *shash_find__(const struct shash *, @@ -145,7 +144,7 @@ void shash_add_assert(struct shash *sh, const char *name, const void *data) { bool added OVS_UNUSED = shash_add_once(sh, name, data); - assert(added); + ovs_assert(added); } /* Searches for 'name' in 'sh'. If it does not already exist, adds it along @@ -242,7 +241,7 @@ void * shash_find_and_delete_assert(struct shash *sh, const char *name) { void *data = shash_find_and_delete(sh, name); - assert(data != NULL); + ovs_assert(data != NULL); return data; } @@ -277,7 +276,7 @@ shash_sort(const struct shash *sh) SHASH_FOR_EACH (node, sh) { nodes[i++] = node; } - assert(i == n); + ovs_assert(i == n); qsort(nodes, n, sizeof *nodes, compare_nodes_by_name);