X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fovsdb-types.h;h=efd83a7916971b5aa5282d727b50b49536367fbb;hb=003ce655b7116d18c86a74c50391e54990346931;hp=6903aa83f165fb3eb8b42e3cdfb415cffd737beb;hpb=a0bc29a541fc7dc6e20137d5558e2094d614e6ab;p=sliver-openvswitch.git diff --git a/lib/ovsdb-types.h b/lib/ovsdb-types.h index 6903aa83f..efd83a791 100644 --- a/lib/ovsdb-types.h +++ b/lib/ovsdb-types.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2009, 2010 Nicira Networks +/* Copyright (c) 2009, 2010, 2011 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -168,13 +168,13 @@ struct json *ovsdb_type_to_json(const struct ovsdb_type *); static inline bool ovsdb_atomic_type_is_valid(enum ovsdb_atomic_type atomic_type) { - return atomic_type >= 0 && atomic_type < OVSDB_N_TYPES; + return (int) atomic_type >= 0 && atomic_type < OVSDB_N_TYPES; } static inline bool ovsdb_base_type_is_ref(const struct ovsdb_base_type *base) { - return base->type == OVSDB_TYPE_UUID && base->u.uuid.refTable; + return base->type == OVSDB_TYPE_UUID && base->u.uuid.refTableName; } static inline bool