2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

socket-util: inet_parse_passive() had incorrect argument type.

This patch fixes the following compiler warning:

lib/socket-util.c:621:5: error: comparison is always false due to
limited range of data type [-Werror=type-limits]
This commit is contained in:
Ethan Jackson
2011-09-13 13:28:49 -07:00
parent a6d214f005
commit 995337c4fc
2 changed files with 2 additions and 2 deletions

View File

@@ -598,7 +598,7 @@ exit:
* If successful, stores the address into '*sinp' and returns true; otherwise
* zeros '*sinp' and returns false. */
bool
inet_parse_passive(const char *target_, uint16_t default_port,
inet_parse_passive(const char *target_, int default_port,
struct sockaddr_in *sinp)
{
char *target = xstrdup(target_);