ovsdb/column.c
/* This comparison is sensitive to ordering of columns within a set, but that's
 * good: the only existing caller wants to make sure that hash values are
 * comparable, which is only true if column ordering is the same. */
This comparison is sensitive to ordering of columns within a set, but that's
good: the only existing caller wants to make sure that hash values are
comparable, which is only true if column ordering is the same.
This comparison is sensitive to ordering of columns within a set but that ' s good : the only existing caller wants to make sure that hash values are comparable which is only true if column ordering is the same .
bool
ovsdb_column_set_equals(const struct ovsdb_column_set *a,
                        const struct ovsdb_column_set *b)
{
    size_t i;
    if (a->n_columns != b->n_columns) {
        return false;
    }
    for (i = 0; i < a->n_columns; i++) {
        if (a->columns[i] != b->columns[i]) {
            return false;
        }
    }
    return true;
}
bool ovsdb_column_set_equals ( const struct ovsdb_column_set * a , const struct ovsdb_column_set * b ) { size_t i ; if ( a -> n_columns != b -> n_columns ) { return false ; } for ( i = 0 ; i < a -> n_columns ; i ++ ) { if ( a -> columns [ i ] != b -> columns [ i ] ) { return false ; } } return true ; }
This comparison is sensitive to ordering of columns within a set, but that's
 good: the only existing caller wants to make sure that hash values are
 comparable, which is only true if column ordering is the same.
This comparison is sensitive to ordering of columns within a set but that ' s good : the only existing caller wants to make sure that hash values are comparable which is only true if column ordering is the same .