projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
util: New macro CONST_CAST.
[openvswitch]
/
lib
/
ovsdb-idl.c
diff --git
a/lib/ovsdb-idl.c
b/lib/ovsdb-idl.c
index 3eca2feb320b58a76497cfbe4bec7cf8e99a98fd..534beb02cf404d811228f0f9cedde95daff8202a 100644
(file)
--- a/
lib/ovsdb-idl.c
+++ b/
lib/ovsdb-idl.c
@@
-1820,7
+1820,7
@@
ovsdb_idl_txn_write(const struct ovsdb_idl_row *row_,
const struct ovsdb_idl_column *column,
struct ovsdb_datum *datum)
{
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;
const struct ovsdb_idl_table_class *class;
size_t column_idx;
@@
-1907,7
+1907,7
@@
void
ovsdb_idl_txn_verify(const struct ovsdb_idl_row *row_,
const struct ovsdb_idl_column *column)
{
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;
const struct ovsdb_idl_table_class *class;
size_t column_idx;
@@
-1946,7
+1946,7
@@
ovsdb_idl_txn_verify(const struct ovsdb_idl_row *row_,
void
ovsdb_idl_txn_delete(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;
if (ovsdb_idl_row_is_synthetic(row)) {
return;