From ecbe577be320a19ae3e3672c2f9072c55d53fa29 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 28 Apr 2010 17:23:47 +0200 Subject: Fixed warnings with clang --- libssh/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libssh/connect.c') 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; -- cgit