ofproto: Change max_ports and alloc_port_no to uint16_t type.
authorAlex Wang <alexw@nicira.com>
Thu, 22 Aug 2013 21:24:17 +0000 (14:24 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 23 Aug 2013 18:32:57 +0000 (11:32 -0700)
commit430dbb14c150ced081b42ec6314c7dc63661a1d1
treed9869a21a6e5942239d959129b7b43bb2e4c0b0d
parent34042e9c7def9f8d6cea92281b8a37f01e5f3178
ofproto: Change max_ports and alloc_port_no to uint16_t type.

The declaration of 'max_ports' and 'alloc_port_no' as ofp_port_t
adds unwanted complexity to coding.  This commit changes them back
to uint16_t type.

Signed-off-by: Alex Wang <alexw@nicira.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto-provider.h
ofproto/ofproto.c