X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fsset.c;h=c5b616fbc3a02b7ac9ee18b2c6a744f5ed53e661;hb=cb22974d773942d66da42b700b8bca0db27a0920;hp=04039a7c496b487ab43d30dcec6bab469d886ee7;hpb=4749f73d12c844b318af7f45cf45e1acac9f7c08;p=sliver-openvswitch.git diff --git a/lib/sset.c b/lib/sset.c index 04039a7c4..c5b616fbc 100644 --- a/lib/sset.c +++ b/lib/sset.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 "sset.h" -#include - #include "hash.h" static uint32_t @@ -147,7 +145,7 @@ void sset_add_assert(struct sset *set, const char *name) { bool added OVS_UNUSED = sset_add(set, name); - assert(added); + ovs_assert(added); } /* Adds a copy of each of the 'n' names in 'names' to 'set'. */ @@ -198,7 +196,7 @@ void sset_find_and_delete_assert(struct sset *set, const char *name) { bool deleted OVS_UNUSED = sset_find_and_delete(set, name); - assert(deleted); + ovs_assert(deleted); } /* Removes a string from 'set' and returns a copy of it. The caller must free