X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fhmapx.c;h=0440767c9c9738a8e26fa0a156b8992cce676d32;hb=cb22974d773942d66da42b700b8bca0db27a0920;hp=1c324c4df3d35f500ba4eda48d65053dc9a6cc8f;hpb=4749f73d12c844b318af7f45cf45e1acac9f7c08;p=sliver-openvswitch.git diff --git a/lib/hmapx.c b/lib/hmapx.c index 1c324c4df..0440767c9 100644 --- a/lib/hmapx.c +++ b/lib/hmapx.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2011 Nicira, Inc. + * Copyright (c) 2011, 2012 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,8 +18,6 @@ #include "hmapx.h" -#include - #include "hash.h" static struct hmapx_node * @@ -119,7 +117,7 @@ void hmapx_add_assert(struct hmapx *map, void *data) { bool added OVS_UNUSED = hmapx_add(map, data); - assert(added); + ovs_assert(added); } /* Removes all of the nodes from 'map'. */ @@ -159,7 +157,7 @@ void hmapx_find_and_delete_assert(struct hmapx *map, const void *data) { bool deleted OVS_UNUSED = hmapx_find_and_delete(map, data); - assert(deleted); + ovs_assert(deleted); } /* Searches for 'data' in 'map'. Returns its node, if found, otherwise a null