X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e566c09daba9ad67b31f3992da9172eb04b807a8..17e2ecb241a23400dab096057ed1fe5cc08cffb1:/src/xbt/set.c diff --git a/src/xbt/set.c b/src/xbt/set.c index 8b3efbfce0..91583052ac 100644 --- a/src/xbt/set.c +++ b/src/xbt/set.c @@ -57,7 +57,7 @@ void xbt_set_free(xbt_set_t * set) static int _xbt_set_get_id(xbt_set_t set) { int id; - if (xbt_dynar_length(set->available_ids) > 0) { + if (!xbt_dynar_is_empty(set->available_ids)) { /* if there are some available ids */ xbt_dynar_pop(set->available_ids, &id); } else { @@ -71,7 +71,7 @@ static int _xbt_set_get_id(xbt_set_t set) * * \param set set to populate * \param elm element to add. - * \param free_func How to add the data + * \param free_func how to free the data * * elm->name must be set; * if elm->name_len <= 0, it is recomputed. If >0, it's used as is;