From 995337c4fc5f249965c52be52e852e5195ed2542 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Tue, 13 Sep 2011 13:28:49 -0700 Subject: [PATCH] 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] --- lib/socket-util.c | 2 +- lib/socket-util.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/socket-util.c b/lib/socket-util.c index 2d554ac1..65b57caf 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 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); -- 2.30.2