From: Ben Pfaff Date: Fri, 3 May 2013 21:01:56 +0000 (-0700) Subject: ofp-util: Fix type of 'port' param to ofputil_encode_dump_ports_request(). X-Git-Tag: sliver-openvswitch-1.10.90-3~16^2~36 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=e94f17a77a1ac993d55b08de2104dfb8878b8983;p=sliver-openvswitch.git ofp-util: Fix type of 'port' param to ofputil_encode_dump_ports_request(). We always use unsigned types for port numbers elsewhere, so use one here too. Signed-off-by: Ben Pfaff Acked-by: Ethan Jackson --- diff --git a/lib/ofp-util.c b/lib/ofp-util.c index 4d3fe9e4c..44d3c4efa 100644 --- a/lib/ofp-util.c +++ b/lib/ofp-util.c @@ -4520,7 +4520,7 @@ ofputil_parse_key_value(char **stringp, char **keyp, char **valuep) * will be for Open Flow version 'ofp_version'. Returns message * as a struct ofpbuf. Returns encoded message on success, NULL on error */ struct ofpbuf * -ofputil_encode_dump_ports_request(enum ofp_version ofp_version, int16_t port) +ofputil_encode_dump_ports_request(enum ofp_version ofp_version, uint16_t port) { struct ofpbuf *request; diff --git a/lib/ofp-util.h b/lib/ofp-util.h index db28c5839..4d0d8adce 100644 --- a/lib/ofp-util.h +++ b/lib/ofp-util.h @@ -692,7 +692,7 @@ struct ofputil_port_stats { }; struct ofpbuf *ofputil_encode_dump_ports_request(enum ofp_version ofp_version, - int16_t port); + uint16_t port); void ofputil_append_port_stat(struct list *replies, const struct ofputil_port_stats *ops); size_t ofputil_count_port_stats(const struct ofp_header *);