From: Zoltan Kiss Date: Thu, 12 Jul 2012 17:24:17 +0000 (+0100) Subject: lib: Define OVSP_NONE in a more clear way X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31a1e58ec7236b915cd9b49d9e927ad90b5ae285;p=openvswitch 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 Signed-off-by: Ben Pfaff --- diff --git a/lib/odp-util.h b/lib/odp-util.h index f902b766..16f2b156 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)