summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Kiss <zoltan.kiss@citrix.com>2012-07-12 18:24:17 +0100
committerBen Pfaff <blp@nicira.com>2012-07-12 16:49:16 -0700
commit31a1e58ec7236b915cd9b49d9e927ad90b5ae285 (patch)
tree6433291fb9ea1f08e8f969c851f51b58c5345588
parent4f8f2439c3cd93b856442816f97e77e95e605042 (diff)
downloadopenvswitch-31a1e58ec7236b915cd9b49d9e927ad90b5ae285.tar.gz
lib: Define OVSP_NONE in a more clear way
The value represented by the macro would stay exactly the same, just become obvious. Signed-off-by: Zoltan Kiss <zoltan.kiss@citrix.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
-rw-r--r--lib/odp-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/odp-util.h b/lib/odp-util.h
index f902b766d..16f2b1567 100644
--- a/lib/odp-util.h
+++ b/lib/odp-util.h
@@ -32,7 +32,7 @@ struct nlattr;
struct ofpbuf;
struct simap;
-#define OVSP_NONE ((uint16_t) -1)
+#define OVSP_NONE UINT16_MAX
static inline uint16_t
ofp_port_to_odp_port(uint16_t ofp_port)