summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-09-13 13:28:49 -0700
committerEthan Jackson <ethan@nicira.com>2011-09-13 14:29:41 -0700
commit995337c4fc5f249965c52be52e852e5195ed2542 (patch)
tree1f14024cd8bfc299c20d5d9bebdf69047763414d /lib
parenta6d214f0055dc773750295a5db7cc5ca14bc5ce7 (diff)
downloadopenvswitch-995337c4fc5f249965c52be52e852e5195ed2542.tar.gz
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]
Diffstat (limited to 'lib')
-rw-r--r--lib/socket-util.c2
-rw-r--r--lib/socket-util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/socket-util.c b/lib/socket-util.c
index 2d554ac18..65b57caf9 100644
--- a/lib/socket-util.c
+++ b/lib/socket-util.c
@@ -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_);
diff --git a/lib/socket-util.h b/lib/socket-util.h
index ce7cd5ba4..0376006f3 100644
--- a/lib/socket-util.h
+++ b/lib/socket-util.h
@@ -45,7 +45,7 @@ bool inet_parse_active(const char *target, uint16_t default_port,
int inet_open_active(int style, const char *target, uint16_t default_port,
struct sockaddr_in *sinp, int *fdp);
-bool inet_parse_passive(const char *target, uint16_t default_port,
+bool inet_parse_passive(const char *target, int default_port,
struct sockaddr_in *sinp);
int inet_open_passive(int style, const char *target, int default_port,
struct sockaddr_in *sinp);