X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=lib%2Fovsdb-idl.c;h=6118852487bfb61123848c94f18a54ea731a7eb7;hb=5b289eaf9f880c5284510a45db8e13f55f4968f3;hp=3eca2feb320b58a76497cfbe4bec7cf8e99a98fd;hpb=a699f6143e09b1d63ea284b7d8180c74f27dea60;p=openvswitch diff --git a/lib/ovsdb-idl.c b/lib/ovsdb-idl.c index 3eca2feb..61188524 100644 --- a/lib/ovsdb-idl.c +++ b/lib/ovsdb-idl.c @@ -230,6 +230,7 @@ ovsdb_idl_destroy(struct ovsdb_idl *idl) json_destroy(idl->monitor_request_id); free(idl->lock_name); json_destroy(idl->lock_request_id); + hmap_destroy(&idl->outstanding_txns); free(idl); } } @@ -1820,7 +1821,7 @@ ovsdb_idl_txn_write(const struct ovsdb_idl_row *row_, const struct ovsdb_idl_column *column, struct ovsdb_datum *datum) { - struct ovsdb_idl_row *row = (struct ovsdb_idl_row *) row_; + struct ovsdb_idl_row *row = CONST_CAST(struct ovsdb_idl_row *, row_); const struct ovsdb_idl_table_class *class; size_t column_idx; @@ -1907,7 +1908,7 @@ void ovsdb_idl_txn_verify(const struct ovsdb_idl_row *row_, const struct ovsdb_idl_column *column) { - struct ovsdb_idl_row *row = (struct ovsdb_idl_row *) row_; + struct ovsdb_idl_row *row = CONST_CAST(struct ovsdb_idl_row *, row_); const struct ovsdb_idl_table_class *class; size_t column_idx; @@ -1946,7 +1947,7 @@ ovsdb_idl_txn_verify(const struct ovsdb_idl_row *row_, void ovsdb_idl_txn_delete(const struct ovsdb_idl_row *row_) { - struct ovsdb_idl_row *row = (struct ovsdb_idl_row *) row_; + struct ovsdb_idl_row *row = CONST_CAST(struct ovsdb_idl_row *, row_); if (ovsdb_idl_row_is_synthetic(row)) { return;