aboutsummaryrefslogtreecommitdiff
path: root/lib/socket-util.h
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/socket-util.h
parenta6d214f0055dc773750295a5db7cc5ca14bc5ce7 (diff)
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/socket-util.h')
-rw-r--r--lib/socket-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/socket-util.h b/lib/socket-util.h
index ce7cd5ba..0376006f 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);