summaryrefslogtreecommitdiffstats
path: root/libssh/connect.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 17:23:47 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-04-28 17:23:47 +0200
commitecbe577be320a19ae3e3672c2f9072c55d53fa29 (patch)
treeb2534b16610ba55fd551ce3450f916aa161adb84 /libssh/connect.c
parent84db436e3bc51cc962b8c34a6b54918df3762844 (diff)
downloadlibssh-ecbe577be320a19ae3e3672c2f9072c55d53fa29.tar.gz
libssh-ecbe577be320a19ae3e3672c2f9072c55d53fa29.tar.xz
libssh-ecbe577be320a19ae3e3672c2f9072c55d53fa29.zip
Fixed warnings with clang
Diffstat (limited to 'libssh/connect.c')
-rw-r--r--libssh/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/connect.c b/libssh/connect.c
index d376738..b7d9a72 100644
--- a/libssh/connect.c
+++ b/libssh/connect.c
@@ -184,7 +184,7 @@ static int getai(ssh_session session, const char *host, int port, struct addrinf
if (port == 0) {
hints.ai_flags = AI_PASSIVE;
} else {
- snprintf(s_port, sizeof(s_port), "%hu", port);
+ snprintf(s_port, sizeof(s_port), "%hu", (unsigned short)port);
service = s_port;
#ifdef AI_NUMERICSERV
hints.ai_flags=AI_NUMERICSERV;