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:
@@ -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_);
|
||||
|
Reference in New Issue
Block a user