X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Ftable.c;h=15bcec8b579df57160afd9cdcad29129370f8bc5;hb=cb22974d773942d66da42b700b8bca0db27a0920;hp=f24ddc62e5cde843334c9dd117e37000157b78b1;hpb=4749f73d12c844b318af7f45cf45e1acac9f7c08;p=sliver-openvswitch.git diff --git a/lib/table.c b/lib/table.c index f24ddc62e..15bcec8b5 100644 --- a/lib/table.c +++ b/lib/table.c @@ -18,8 +18,6 @@ #include "table.h" -#include - #include "dynamic-string.h" #include "json.h" #include "ovsdb-data.h" @@ -143,7 +141,7 @@ table_add_column(struct table *table, const char *heading, ...) struct column *column; va_list args; - assert(!table->n_rows); + ovs_assert(!table->n_rows); if (table->n_columns >= table->allocated_columns) { table->columns = x2nrealloc(table->columns, &table->allocated_columns, sizeof *table->columns); @@ -204,8 +202,8 @@ table_add_cell(struct table *table) { size_t x, y; - assert(table->n_rows > 0); - assert(table->current_column < table->n_columns); + ovs_assert(table->n_rows > 0); + ovs_assert(table->current_column < table->n_columns); x = table->current_column++; y = table->n_rows - 1;