Make folly::Uri::port() return uint16_t instead of uint32_t.
authorStephane Sezer <sas@fb.com>
Thu, 19 Sep 2013 19:19:26 +0000 (12:19 -0700)
committerJordan DeLong <jdelong@fb.com>
Sun, 22 Sep 2013 23:40:23 +0000 (16:40 -0700)
commit4c787a9d2f0ce748d7082fd1a6469f7ed6999dc6
tree76915a5fd7f672b059a68182b01e562b8e7bcac5
parentffd25cf7d90cdfc11db8e5e09aac56a587e92eb2
Make folly::Uri::port() return uint16_t instead of uint32_t.

Summary: We can safely assume that ports are always going to be 16bit (TCP or UDP), so no need to have a uint32_t here.

Test Plan: Ran tests in folly/tests.

Reviewed By: tudorb@fb.com

FB internal diff: D973291
folly/Uri.cpp
folly/Uri.h