From: Ben Pfaff Date: Fri, 12 Feb 2010 21:58:17 +0000 (-0800) Subject: ofproto: Use UINT16_MAX in place of -1, for clarity. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=165cd8a38b058e67c1554253bebc5e49a3b61314;p=openvswitch ofproto: Use UINT16_MAX in place of -1, for clarity. Reported-by: Jesse Gross --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 7ab9dee6..a431cc78 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -2801,7 +2801,7 @@ add_flow(struct ofproto *p, struct ofconn *ofconn, &packet, &in_port); } else { packet = NULL; - in_port = -1; + in_port = UINT16_MAX; } rule_insert(p, rule, packet, in_port);